diff --git a/Performance.php b/Performance.php new file mode 100644 index 0000000..8dd0078 --- /dev/null +++ b/Performance.php @@ -0,0 +1,56 @@ +getSize(); + $testProviderArray[] = $file->getPathname(); + } +} + +if (count($testProviderArray) === 0) { + throw new Exception("ERROR: Validation testsuite frameworks not found - run `git submodule update --init --recursive` to download."); +} + +foreach ($testProviderArray as $idx=>$testCaseFile) { + if ($idx > 10) { + exit(); + } + + echo "$idx\n"; + + $fileContents = file_get_contents($testCaseFile); + + $parser = ParserResourceFactory::getParser(); + $docBlockFactory = DocBlockFactory::createInstance(); + $index = new Index; + $definitionResolver = ParserResourceFactory::getDefinitionResolver($index); + + try { + $document = new PhpDocument($testCaseFile, $fileContents, $index, $parser, $docBlockFactory, $definitionResolver); + } catch (\Exception $e) { + echo "AAAHH\n"; + continue; + } +} +