Files
pest/tests/Features/Fixture.php
T
2026-07-18 01:10:01 +01:00

15 lines
357 B
PHP

<?php
declare(strict_types=1);
it('may return a file path', function (): void {
$file = fixture('phpunit-in-isolation.xml');
expect($file)->toBeString()
->toBeFile();
});
it('may throw an exception if the file does not exist', function (): void {
fixture('file-that-does-not-exist.php');
})->throws(InvalidArgumentException::class);