Skip to content

Commit 5958eb4

Browse files
minor symfony#16227 [PhpUnit] exit gracefully to workaround segfaults at shutdown time (nicolas-grekas)
This PR was merged into the 2.8 branch. Discussion ---------- [PhpUnit] exit gracefully to workaround segfaults at shutdown time | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 1a93494 [PhpUnit] exit gracefully to workaround segfaults at shutdown time
2 parents e0e38ba + 1a93494 commit 5958eb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/Symfony/Bridge/PhpUnit/SymfonyTestsListener.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public function startTestSuite(\PHPUnit_Framework_TestSuite $suite)
5252
$this->state = 2;
5353

5454
if (!$this->wasSkipped = require $this->skippedFile) {
55-
exit("All tests already ran successfully.\n");
55+
echo "All tests already ran successfully.\n";
56+
$suite->setTests(array());
5657
}
5758
}
5859
}

0 commit comments

Comments
 (0)