Skip to content

Commit da86c93

Browse files
committed
bug #21135 [PhpUnitBridge] hide stack trace of expected deprecation failures (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
2 parents b5aa889 + 3777da5 commit da86c93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bridge/PhpUnit/SymfonyTestsListener.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class SymfonyTestsListener extends \PHPUnit_Framework_BaseTestListener
3434
*/
3535
public function __construct(array $mockedNamespaces = array())
3636
{
37+
\PHPUnit_Util_Blacklist::$blacklistedClassNames['\Symfony\Bridge\PhpUnit\SymfonyTestsListener'] = 1;
38+
3739
$warn = false;
3840
foreach ($mockedNamespaces as $type => $namespaces) {
3941
if (!is_array($namespaces)) {

0 commit comments

Comments
 (0)