Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions PhpUnit/AbstractCompilerPassTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./vendor/autoload.php" colors="true">
<phpunit bootstrap="./vendor/autoload.php" colors="true" strict="true">
<testsuites>
<testsuite>
<directory suffix="Test.php">./Tests</directory>
Expand Down