feat: adds fixture

This commit is contained in:
Nuno Maduro
2025-06-27 02:15:28 +01:00
parent 163479ae60
commit ef76c04dbe
3 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,11 @@
<?php
it('may return a file path', function () {
$file = fixture('phpunit-in-isolation.xml');
expect($file)->toBeString()
->toBeFile();
});
it('may throw an exception if the file does not exist', function () {
fixture('file-that-does-not-exist.php');