Skip to content

Commit

Permalink
Update parse error expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
driftingly committed Sep 1, 2023
1 parent 20c368f commit 0a33a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Formatting/ParseErrorDoesNotFormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
2 changes: 1 addition & 1 deletion tests/Linting/ParseErrorConvertsToLintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 0a33a6c

Please sign in to comment.