mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fix windows tests
This commit is contained in:
@ -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');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user