Skip to content

Commit

Permalink
bug #21336 [PhpUnit] Blacklist DeprecationErrorHandler in stack trace…
Browse files Browse the repository at this point in the history
…s (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
  • Loading branch information
fabpot committed Jan 18, 2017
2 parents 24f0fd0 + 3f693ae commit 6283fc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Bridge/PhpUnit/SymfonyTestsListener.php
Expand Up @@ -34,6 +34,7 @@ class SymfonyTestsListener extends \PHPUnit_Framework_BaseTestListener
*/
public function __construct(array $mockedNamespaces = array())
{
\PHPUnit_Util_Blacklist::$blacklistedClassNames['\Symfony\Bridge\PhpUnit\DeprecationErrorHandler'] = 1;
\PHPUnit_Util_Blacklist::$blacklistedClassNames['\Symfony\Bridge\PhpUnit\SymfonyTestsListener'] = 1;

$warn = false;
Expand Down

0 comments on commit 6283fc4

Please sign in to comment.