We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9a88a8 commit 9dd4e42Copy full SHA for 9dd4e42
tests/Pest.php
@@ -14,6 +14,7 @@
14
*/
15
16
use Laravel\Mcp\Response;
17
+use function Pest\testDirectory;
18
19
uses(Tests\TestCase::class)->in('Unit', 'Feature');
20
@@ -63,6 +64,13 @@
63
64
return $this;
65
});
66
67
+if (! function_exists('fixture')) {
68
+ function fixture(string $name): string
69
+ {
70
+ return testDirectory('Fixtures/'.$name);
71
+ }
72
+}
73
+
74
function fixtureContent(string $name): string
75
{
76
return file_get_contents(fixture($name));
0 commit comments