[VarExporter] Fix test on PHP 8.1
Signed-off-by: Alexander M. Turek <me@derrabus.de>
This commit is contained in:
parent
7957b48855
commit
56359cb999
@ -55,7 +55,10 @@ class InstantiatorTest extends TestCase
|
||||
"\0".__NAMESPACE__."\Foo\0priv" => 234,
|
||||
];
|
||||
|
||||
$this->assertSame($expected, (array) Instantiator::instantiate(Bar::class, ['priv' => 123], [Foo::class => ['priv' => 234]]));
|
||||
$actual = (array) Instantiator::instantiate(Bar::class, ['priv' => 123], [Foo::class => ['priv' => 234]]);
|
||||
ksort($actual);
|
||||
|
||||
$this->assertSame($expected, $actual);
|
||||
|
||||
$e = Instantiator::instantiate('Exception', ['foo' => 123, 'trace' => [234]]);
|
||||
|
||||
|
Reference in New Issue
Block a user