tests: unexpected output

This commit is contained in:
Nuno Maduro
2023-06-15 14:06:54 +02:00
parent 0e5470b192
commit eb9f31edeb
8 changed files with 104 additions and 5 deletions

View File

@ -121,8 +121,7 @@ final class ResultPrinter
$unexpectedOutput = $this->tail($outputFile);
if ($unexpectedOutput !== '') {
// if unexpected output only contains the letter "T", like "T", or "TT", or "TTT", etc, then ignore it.
if (preg_match('/^T+$/', $unexpectedOutput) !== false) {
if (preg_match('/^T+$/', $unexpectedOutput) > 0) {
return;
}