Skip to content

Commit

Permalink
simplify exception message check since Windows has a leading / before…
Browse files Browse the repository at this point in the history
… src there for whatever reason and I don't have a Windows machine to reproduce it
  • Loading branch information
kkmuffme committed Feb 1, 2024
1 parent a79a275 commit 2f662f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/StubTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ function_exists("fooBar");

public function testNoStubFunction(): void
{
$this->expectExceptionMessage('UndefinedFunction - src/somefile.php:2:22 - Function barBar does not exist');
$this->expectExceptionMessage('UndefinedFunction');
$this->expectException(CodeException::class);
$this->project_analyzer = $this->getProjectAnalyzerWithConfig(
TestConfig::loadFromXML(
Expand Down

0 comments on commit 2f662f0

Please sign in to comment.