- HKEKA v3/v4/v5 Segmente fuer phpFinTS implementiert (VR Bank unterstuetzt kein HKEKP) - GetElectronicStatement Action mit Base64-Erkennung und Quittungscode - PDF-Deduplizierung per MD5 (Bank sendet identische Saldenmitteilungen) - Saldenmitteilungen ohne Auszugsnummer werden uebersprungen - Datums-Validierung: 30.02. (Bank-Konvention) wird auf 28.02. korrigiert - Numerische Sortierung fuer statement_number (CAST statt String-Sort) - Jahr-Filter: statement_year=0 ausgeschlossen - Menue/Button: "Kontoauszuege" -> "Umsaetze" (statements.php zeigt MT940, nicht PDFs) - Redirect nach FinTS-Abruf auf aktuelles Jahr statt year=0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
45 lines
955 B
PHP
Executable file
45 lines
955 B
PHP
Executable file
<?php
|
|
|
|
namespace Tests\Fhp;
|
|
|
|
use Fhp\Connection;
|
|
use Fhp\FinTs;
|
|
use Fhp\Options\Credentials;
|
|
use Fhp\Options\FinTsOptions;
|
|
use Fhp\Protocol\ServerException;
|
|
|
|
/**
|
|
* Sub-classes {@link FinTs} to expose some of the protected functions, and also to inject the Connection mock.
|
|
*/
|
|
class FinTsPeer extends FinTs
|
|
{
|
|
/**
|
|
* @var Connection
|
|
*/
|
|
public static $mockConnection;
|
|
|
|
public function __construct(FinTsOptions $options, ?Credentials $credentials)
|
|
{
|
|
parent::__construct($options, $credentials);
|
|
}
|
|
|
|
/** {@inheritdoc} */
|
|
protected function newConnection(): Connection
|
|
{
|
|
return self::$mockConnection;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
* @throws ServerException
|
|
*/
|
|
public function endDialog(bool $isAnonymous = false) // parent::endDialog() is protected
|
|
{
|
|
parent::endDialog($isAnonymous);
|
|
}
|
|
|
|
public function getDialogId()
|
|
{
|
|
return $this->dialogId;
|
|
}
|
|
}
|