Skip to content

Commit 3fb867f

Browse files
committed
feat: add faker support
1 parent 6ee9c8d commit 3fb867f

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

tests/_/FunctionsTest.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Constructo\Test\_;
6+
7+
use PHPUnit\Framework\TestCase;
8+
9+
class FunctionsTest extends TestCase
10+
{
11+
public function testShouldRequireFunctions(): void
12+
{
13+
$files = [
14+
'src/_/cast.php',
15+
'src/_/crypt.php',
16+
'src/_/json.php',
17+
'src/_/notation.php',
18+
'src/_/util.php',
19+
];
20+
foreach ($files as $file) {
21+
$filename = __DIR__ . '/../../' . $file;
22+
$this->assertFileExists($filename, sprintf("File '%s' does not exist", $file));
23+
require $filename;
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)