diff --git a/PhpUnit/AbstractCompilerPassTestCase.php b/PhpUnit/AbstractCompilerPassTestCase.php index 876f413..63790fa 100644 --- a/PhpUnit/AbstractCompilerPassTestCase.php +++ b/PhpUnit/AbstractCompilerPassTestCase.php @@ -23,6 +23,9 @@ public function compilation_should_not_fail_with_empty_container() { try { $this->compile(); + + // Ensure assertion for strict mode + $this->assertFalse($this->container->has('no_service')); } catch (\Exception $e) { $this->fail('The compiler pass should not fail with an empty container.'); } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7536230..15ac36b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,5 +1,5 @@ - + ./Tests