From 0a33a6cb47f33ce3a935324a7b545d2f30226d10 Mon Sep 17 00:00:00 2001 From: Anthony Clark Date: Fri, 1 Sep 2023 15:54:14 -0700 Subject: [PATCH] Update parse error expectations --- tests/Formatting/ParseErrorDoesNotFormatTest.php | 2 +- tests/Linting/ParseErrorConvertsToLintTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()); } }