[PhpUnitBridge] Fix Deprecation file when it comes from the TestsListener
This commit is contained in:
parent
56679fe735
commit
1ba06a0f86
@ -12,6 +12,7 @@
|
|||||||
namespace Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
|
namespace Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
|
||||||
|
|
||||||
use PHPUnit\Util\Test;
|
use PHPUnit\Util\Test;
|
||||||
|
use Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerFor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
@ -83,6 +84,11 @@ class Deprecation
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($line['class']) && 0 === strpos($line['class'], SymfonyTestsListenerFor::class)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->originClass = isset($line['object']) ? \get_class($line['object']) : $line['class'];
|
$this->originClass = isset($line['object']) ? \get_class($line['object']) : $line['class'];
|
||||||
$this->originMethod = $line['function'];
|
$this->originMethod = $line['function'];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user