chore: refactor RenderableOnCollisionEditor

This commit is contained in:
Nuno Maduro
2023-03-31 09:39:05 +01:00
parent 3f38f19df8
commit 3cee6a499d
5 changed files with 11 additions and 7 deletions

View File

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