We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ee9c8d commit 3fb867fCopy full SHA for 3fb867f
1 file changed
tests/_/FunctionsTest.php
@@ -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