Skip to content

Commit

Permalink
bug #21135 [PhpUnitBridge] hide stack trace of expected deprecation f…
Browse files Browse the repository at this point in the history
…ailures (xabbuh)

This PR was merged into the 3.2 branch.

Discussion
----------

[PhpUnitBridge] hide stack trace of expected deprecation failures

| 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        |

Commits
-------

3777da5 hide stack trace of expected deprecation failures
  • Loading branch information
fabpot committed Jan 2, 2017
2 parents b5aa889 + 3777da5 commit da86c93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/PhpUnit/SymfonyTestsListener.php
Expand Up @@ -34,6 +34,8 @@ class SymfonyTestsListener extends \PHPUnit_Framework_BaseTestListener
*/
public function __construct(array $mockedNamespaces = array())
{
\PHPUnit_Util_Blacklist::$blacklistedClassNames['\Symfony\Bridge\PhpUnit\SymfonyTestsListener'] = 1;

$warn = false;
foreach ($mockedNamespaces as $type => $namespaces) {
if (!is_array($namespaces)) {
Expand Down

0 comments on commit da86c93

Please sign in to comment.