#[Package('checkout')]
class PaymentTransactionStructFactoryTest extends TestCase
{ public function testDecorated(): void
{ static::
expectException(DecorationPatternException::
class);
$factory =
new PaymentTransactionStructFactory();
$factory->
getDecorated();
} public function testDecoration(): void
{ $factory =
new class() extends PaymentTransactionStructFactory
{ public function getDecorated(): AbstractPaymentTransactionStructFactory
{ return new static();
} };