fix windows tests

This commit is contained in:
Fabio Ivona
2023-03-31 10:53:11 +02:00
parent 3cee6a499d
commit 8e3d7d85e8

View File

@ -21,8 +21,8 @@ test('collision editor can be added to the stack trace', function () {
} }
}; };
expect(ThrowableBuilder::from($exception)->stackTrace()) expect(str_replace(DIRECTORY_SEPARATOR, '/', ThrowableBuilder::from($exception)->stackTrace()))
->toContain('tests/Unit/Overrides/../../Pest.php:5') ->toContain('tests/Unit/Overrides/../../Pest.php:5')
->and(ThrowableBuilder::from(new Exception('test'))->stackTrace()) ->and(str_replace(DIRECTORY_SEPARATOR, '/', ThrowableBuilder::from(new Exception('test'))->stackTrace()))
->toContain('tests/Unit/Overrides/ThrowableBuilder.php:26'); ->toContain('tests/Unit/Overrides/ThrowableBuilder.php:26');
}); });