diff --git a/tests/BinaryOperationTest.php b/tests/BinaryOperationTest.php index fef58e767..cefc8ccb3 100644 --- a/tests/BinaryOperationTest.php +++ b/tests/BinaryOperationTest.php @@ -253,7 +253,7 @@ class BinaryOperationTest extends TestCase ' 'InvalidOperand - src/somefile.php:3 - Cannot add GMP to non-numeric type', + 'error_message' => 'InvalidOperand - src' . DIRECTORY_SEPARATOR . 'somefile.php:3 - Cannot add GMP to non-numeric type', ], 'stringIncrement' => [ 'getString(); $child->foo();', - 'error_message' => 'UndefinedMethod - src/somefile.php:14 - Method Child::foo does not exist', + 'error_message' => 'UndefinedMethod - src' . DIRECTORY_SEPARATOR . 'somefile.php:14 - Method Child::foo does not exist', ], 'annotationInvalidArg' => [ 'zugzug(); }', - 'error_message' => 'UndefinedInterfaceMethod - src/somefile.php:7 - Method (B&A)::zugzug does not exist' + 'error_message' => 'UndefinedInterfaceMethod - src' . DIRECTORY_SEPARATOR . 'somefile.php:7 - Method (B&A)::zugzug does not exist' ], 'noInstanceCallAsStatic' => [ ' 'MethodSignatureMismatch - src/somefile.php:6 - Method C::foo has more required', + 'error_message' => 'MethodSignatureMismatch - src' . DIRECTORY_SEPARATOR . 'somefile.php:6 - Method C::foo has more required', ], 'inheritParamTypes' => [ ' 'ParadoxicalCondition - src/somefile.php:7', + 'error_message' => 'ParadoxicalCondition - src' . DIRECTORY_SEPARATOR . 'somefile.php:7', ], 'impossibleCaseValue' => [ ' 'TypeDoesNotContainType - src/somefile.php:11', + 'error_message' => 'TypeDoesNotContainType - src' . DIRECTORY_SEPARATOR . 'somefile.php:11', ], 'impossibleCaseDefault' => [ ' 'ParadoxicalCondition - src/somefile.php:11', + 'error_message' => 'ParadoxicalCondition - src' . DIRECTORY_SEPARATOR . 'somefile.php:11', ], 'breakWithoutSettingVar' => [ ' 'TypeDoesNotContainType - src/somefile.php:5 - string(InvalidArgumentException) cannot be identical to class-string', + 'error_message' => 'TypeDoesNotContainType - src' . DIRECTORY_SEPARATOR . 'somefile.php:5 - string(InvalidArgumentException) cannot be identical to class-string', ], ]; } diff --git a/tests/Template/TemplateExtendsTest.php b/tests/Template/TemplateExtendsTest.php index d705fb643..ef3c85541 100644 --- a/tests/Template/TemplateExtendsTest.php +++ b/tests/Template/TemplateExtendsTest.php @@ -1180,7 +1180,7 @@ class TemplateExtendsTest extends TestCase return new Foo(); } }', - 'error_message' => 'ImplementedReturnTypeMismatch - src/somefile.php:29 - The return type \'A\Bar\' for', + 'error_message' => 'ImplementedReturnTypeMismatch - src' . DIRECTORY_SEPARATOR . 'somefile.php:29 - The return type \'A\Bar\' for', ], 'extendTemplateAndDoesNotOverrideWithWrongArg' => [ ' 'InvalidArgument - src/somefile.php:20 - Argument 1 of type expects string, callable(State):(T as mixed)&Foo provided', + 'error_message' => 'InvalidArgument - src' . DIRECTORY_SEPARATOR . 'somefile.php:20 - Argument 1 of type expects string, callable(State):(T as mixed)&Foo provided', ], 'classTemplateAsIncorrectClass' => [ '