diff --git a/tests/Traits/InvalidCodeAnalysisTestTrait.php b/tests/Traits/InvalidCodeAnalysisTestTrait.php index f4b9b8357d0..b7276960084 100644 --- a/tests/Traits/InvalidCodeAnalysisTestTrait.php +++ b/tests/Traits/InvalidCodeAnalysisTestTrait.php @@ -51,6 +51,11 @@ public function testInvalidCode( $this->markTestSkipped('Skipped due to a bug.'); } + // sanity check - do we have a PHP tag? + if (strpos($code, 'fail('Test case must have a markTestSkipped('Skipped due to a bug.'); } + // sanity check - do we have a PHP tag? + if (strpos($code, 'fail('Test case must have a setCustomErrorLevel($issue_name, Config::REPORT_SUPPRESS); }