File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ private function shouldTestBeSkipped(array $sections, array $settings): bool
350
350
$ output = $ this ->runCodeInLocalSandbox ($ skipIfCode );
351
351
}
352
352
353
- $ this ->triggerWarningOnPhpErrors ($ output );
353
+ $ this ->triggerWarningOnPhpErrors (' SKIPIF ' , $ output );
354
354
355
355
if (strncasecmp ('skip ' , ltrim ($ output ), 4 ) === 0 ) {
356
356
$ message = '' ;
@@ -683,12 +683,13 @@ private function settings(bool $collectCoverage): array
683
683
return $ settings ;
684
684
}
685
685
686
- private function triggerWarningOnPhpErrors (string $ output ): void
686
+ private function triggerWarningOnPhpErrors (string $ section , string $ output ): void
687
687
{
688
688
if (str_contains ($ output , 'Parse error: ' )) {
689
689
EventFacade::emitter ()->testRunnerTriggeredPhpunitWarning (
690
690
sprintf (
691
- 'SKIPIF section triggered a parse error: %s ' ,
691
+ '%s section triggered a parse error: %s ' ,
692
+ $ section ,
692
693
$ output ,
693
694
),
694
695
);
@@ -697,7 +698,8 @@ private function triggerWarningOnPhpErrors(string $output): void
697
698
if (str_contains ($ output , 'Fatal error: ' )) {
698
699
EventFacade::emitter ()->testRunnerTriggeredPhpunitWarning (
699
700
sprintf (
700
- 'SKIPIF section triggered a fatal error: %s ' ,
701
+ '%s section triggered a fatal error: %s ' ,
702
+ $ section ,
701
703
$ output ,
702
704
),
703
705
);
You can’t perform that action at this time.
0 commit comments