Skip to content

Commit

Permalink
Fix PHP 7.2 compatibility in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Apr 18, 2024
1 parent b67f178 commit 6385689
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tests/unit/Container/ContainerConfiguratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,10 @@ public function testExtensionByTypeNoInfiniteRecursion(): void
{
// We can't declare classes inside a class, but we can eval it.
$php = <<<'PHP'
class A {}
class B extends A {}
PHP;
class A {}
class B extends A {}
PHP;

eval($php);

$called = [];
Expand Down Expand Up @@ -454,12 +455,12 @@ public function testExtensionByTypeNested(): void

// We can't declare classes inside a class, but we can eval it.
$php = <<<'PHP'
class A {}
class B extends A {}
class C {}
class D {};
class E extends D {};
PHP;
class A {}
class B extends A {}
class C {}
class D {};
class E extends D {};
PHP;
eval($php);

$configurator->addExtension(
Expand Down

0 comments on commit 6385689

Please sign in to comment.