Skip to content

Commit cd93a3f

Browse files
committed
Fix build for Pest
1 parent 4d19da8 commit cd93a3f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/TestFramework/PhpUnit/Adapter/PestAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testsPass(string $output): bool
7676

7777
public function isSyntaxError(string $output): bool
7878
{
79-
return preg_match('/ParseError\s*syntax error/i', $output) === 1;
79+
return preg_match('/(ParseError\s*syntax error|Syntax Error for Pest)/i', $output) === 1;
8080
}
8181

8282
public function hasJUnitReport(): bool

tests/e2e/Syntax_Error_Pest/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@
1111
"psr-4": {
1212
"Syntax_Error_Pest\\Test\\": "tests/"
1313
}
14+
},
15+
"config": {
16+
"allow-plugins": {
17+
"pestphp/pest-plugin": true
18+
}
1419
}
1520
}

0 commit comments

Comments
 (0)