Skip to content

Commit 6283fc4

Browse files
committed
bug symfony#21336 [PhpUnit] Blacklist DeprecationErrorHandler in stack traces (nicolas-grekas)
This PR was merged into the 3.2 branch. Discussion ---------- [PhpUnit] Blacklist DeprecationErrorHandler in stack traces | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - So that phpunit doesn't tell about DeprecationErrorHandler in failure's stack traces. Commits ------- 3f693ae [PhpUnit] Blacklist DeprecationErrorHandler in stack traces
2 parents 24f0fd0 + 3f693ae commit 6283fc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bridge/PhpUnit/SymfonyTestsListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class SymfonyTestsListener extends \PHPUnit_Framework_BaseTestListener
3434
*/
3535
public function __construct(array $mockedNamespaces = array())
3636
{
37+
\PHPUnit_Util_Blacklist::$blacklistedClassNames['\Symfony\Bridge\PhpUnit\DeprecationErrorHandler'] = 1;
3738
\PHPUnit_Util_Blacklist::$blacklistedClassNames['\Symfony\Bridge\PhpUnit\SymfonyTestsListener'] = 1;
3839

3940
$warn = false;

0 commit comments

Comments
 (0)