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.
2 parents 583fd8e + 1962718 commit 572db9aCopy full SHA for 572db9a
tests/PhpFunctionsScannerTest.php
@@ -7,6 +7,15 @@
7
8
class PhpFunctionsScannerTest extends TestCase
9
{
10
+ public function testScanOnEmptyCode()
11
+ {
12
+ $scanner = new PhpFunctionsScanner();
13
+ $file = __DIR__.'/assets/functions.php';
14
+ $functions = $scanner->scan('', $file);
15
+
16
+ $this->assertSame([], $functions);
17
+ }
18
19
public function testPhpFunctionsExtractor()
20
21
$scanner = new PhpFunctionsScanner();
0 commit comments