mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
update snapshot for running tests with failed classnames
This commit is contained in:
@ -13,7 +13,13 @@ test('visual snapshot of test suite on success', function () {
|
||||
|
||||
$process->run();
|
||||
|
||||
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $process->getOutput());
|
||||
return preg_replace([
|
||||
'#\\x1b[[][^A-Za-z]*[A-Za-z]#',
|
||||
'/(Tests\\\PHPUnit\\\CustomAffixes\\\InvalidTestName)([A-Za-z0-9]*)/'
|
||||
], [
|
||||
'',
|
||||
'$1'
|
||||
], $process->getOutput());
|
||||
};
|
||||
|
||||
if (getenv('REBUILD_SNAPSHOTS')) {
|
||||
|
||||
Reference in New Issue
Block a user