@@ -26,24 +26,24 @@ public function testMessageAndLineAndBuild(): void
2626
2727 public function testMessageAndFileAndBuild (): void
2828 {
29- $ builder = RuleErrorBuilder::message ('Foo ' )->file (' Bar.php ' );
29+ $ builder = RuleErrorBuilder::message ('Foo ' )->file (__FILE__ );
3030 $ ruleError = $ builder ->build ();
3131 $ this ->assertSame ('Foo ' , $ ruleError ->getMessage ());
3232
3333 $ this ->assertInstanceOf (FileRuleError::class, $ ruleError ); // @phpstan-ignore method.alreadyNarrowedType
34- $ this ->assertSame (' Bar.php ' , $ ruleError ->getFile ());
34+ $ this ->assertSame (__FILE__ , $ ruleError ->getFile ());
3535 }
3636
3737 public function testMessageAndLineAndFileAndBuild (): void
3838 {
39- $ builder = RuleErrorBuilder::message ('Foo ' )->line (25 )->file (' Bar.php ' );
39+ $ builder = RuleErrorBuilder::message ('Foo ' )->line (25 )->file (__FILE__ );
4040 $ ruleError = $ builder ->build ();
4141 $ this ->assertSame ('Foo ' , $ ruleError ->getMessage ());
4242
4343 $ this ->assertInstanceOf (LineRuleError::class, $ ruleError ); // @phpstan-ignore method.alreadyNarrowedType
4444 $ this ->assertInstanceOf (FileRuleError::class, $ ruleError ); // @phpstan-ignore method.alreadyNarrowedType
4545 $ this ->assertSame (25 , $ ruleError ->getLine ());
46- $ this ->assertSame (' Bar.php ' , $ ruleError ->getFile ());
46+ $ this ->assertSame (__FILE__ , $ ruleError ->getFile ());
4747 }
4848
4949}
0 commit comments