add FileSystemTest

This commit is contained in:
sunxyw
2022-12-23 20:22:43 +08:00
parent 1d131871f1
commit 5e3d07abe6
6 changed files with 160 additions and 7 deletions

View File

@@ -129,9 +129,6 @@ class FileSystem
$tokens = \PhpToken::tokenize(file_get_contents($path));
$found = false;
foreach ($tokens as $token) {
if (!$token instanceof \PhpToken) {
continue;
}
if ($token->is(T_CLASS)) {
$found = true;
break;