Files
pest/tests/Features/Fixture.php
2025-06-27 02:15:36 +01:00

13 lines
319 B
PHP

<?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');
})->throws(InvalidArgumentException::class);