- php-fints Bibliothek von 3.7.0 auf 4.0.0 aktualisiert - Parser-Fix: Ignoriert zusätzliche Bank-Felder statt Exception - HKEKA Segmente implementiert (HIEKASv5, HKEKAv5, HIEKAv5) - HKKAA Segmente implementiert (HIKAASv1, HKKAAv1) - GetStatementFromArchive und GetElectronicStatement Actions HINWEIS: HKKAA/HKEKA funktionieren noch nicht mit VR Bank (Fehler "unerwarteter Aufbau wrt DE 2" - Kontoverbindungsformat) Normale Funktionalität (Transaktionsimport) ist nicht betroffen. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
40 lines
904 B
PHP
40 lines
904 B
PHP
<?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
|
|
{
|
|
public static ?Connection $mockConnection = null;
|
|
|
|
public function __construct(FinTsOptions $options, ?Credentials $credentials)
|
|
{
|
|
parent::__construct($options, $credentials);
|
|
}
|
|
|
|
protected function newConnection(): Connection
|
|
{
|
|
return self::$mockConnection;
|
|
}
|
|
|
|
/**
|
|
* @throws ServerException
|
|
*/
|
|
public function endDialog(bool $isAnonymous = false): void // parent::endDialog() is protected
|
|
{
|
|
parent::endDialog($isAnonymous);
|
|
}
|
|
|
|
public function getDialogId(): ?string
|
|
{
|
|
return $this->dialogId;
|
|
}
|
|
}
|