[PhpUnitBridge] Fix Deprecation file when it comes from the TestsListener

This commit is contained in:
Thomas Calvet 2020-10-02 14:43:26 +02:00
parent 56679fe735
commit 1ba06a0f86
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,7 @@
namespace Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
use PHPUnit\Util\Test;
use Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerFor;
/**
* @internal
@ -83,6 +84,11 @@ class Deprecation
return;
}
if (isset($line['class']) && 0 === strpos($line['class'], SymfonyTestsListenerFor::class)) {
return;
}
$this->originClass = isset($line['object']) ? \get_class($line['object']) : $line['class'];
$this->originMethod = $line['function'];
}