Merge pull request #755 from fabio-ivona/fix-windows-tests

fix windows tests
This commit is contained in:
Nuno Maduro
2023-03-31 09:54:47 +01:00
committed by GitHub

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')
->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');
});