Skip to content

Commit f0c0cdf

Browse files
committed
Improved test suite output recognition
1 parent 564c349 commit f0c0cdf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/utilities.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ function runAutomatedTests(string $library): array
4545
];
4646
}
4747

48+
if (($position = strpos($output, 'ERRORS!')) !== false) {
49+
return [
50+
'status' => false,
51+
'output' => substr($output, $position)
52+
];
53+
}
54+
4855
return [
4956
'status' => false,
5057
'output' => 'Unknown Failure'

0 commit comments

Comments
 (0)