$trace =
debug_backtrace();
$this->
assertTrue($configuration->
isBaselineDeprecation(new Deprecation('Regular deprecation',
$trace, ''
)));
$trace[2
] =
[ 'class' => DebugClassLoader::
class,
'function' => 'testBaselineGenerationWithDeprecationTriggeredByDebugClassLoader',
'args' =>
[self::
class] ];
$deprecation =
new Deprecation('Deprecation by debug class loader',
$trace, ''
);
$this->
assertTrue($deprecation->
originatesFromDebugClassLoader());
$this->
assertTrue($configuration->
isBaselineDeprecation($deprecation));
$configuration->
writeBaseline();
$this->
assertEquals($filename,
$configuration->
getBaselineFile());
$expected =
[ [ 'location' => 'Symfony\Bridge\PhpUnit\Tests\DeprecationErrorHandler\ConfigurationTest::runTest',
'message' => 'Regular deprecation',
'count' => 1,
],
[