diff --git a/tests/Formatting/ParseErrorDoesNotFormatTest.php b/tests/Formatting/ParseErrorDoesNotFormatTest.php index f7967bc..0e3f966 100644 --- a/tests/Formatting/ParseErrorDoesNotFormatTest.php +++ b/tests/Formatting/ParseErrorDoesNotFormatTest.php @@ -40,7 +40,7 @@ class Thing 'file or directory' => $filePath, ]); - $this->assertStringContainsString("unexpected T_STRING, expecting '='", $commandTester->getDisplay()); + $this->assertStringContainsString('Syntax error', $commandTester->getDisplay()); $this->assertEquals(1, $commandTester->getStatusCode()); } } diff --git a/tests/Linting/ParseErrorConvertsToLintTest.php b/tests/Linting/ParseErrorConvertsToLintTest.php index 22219cb..aadae38 100644 --- a/tests/Linting/ParseErrorConvertsToLintTest.php +++ b/tests/Linting/ParseErrorConvertsToLintTest.php @@ -39,7 +39,7 @@ class Thing 'file or directory' => $filePath, ]); - $this->assertStringContainsString("unexpected T_STRING, expecting '='", $commandTester->getDisplay()); + $this->assertStringContainsString('Syntax error', $commandTester->getDisplay()); $this->assertEquals(1, $commandTester->getStatusCode()); } }