1
0
Fork 0

Add validation test filesize threshold

pull/357/head
Sara Itani 2017-03-24 10:30:07 -07:00
parent 7b633f5e07
commit cd4c6d66d9
1 changed files with 3 additions and 2 deletions

View File

@ -30,11 +30,12 @@ class ValidationTest extends TestCase
foreach (new RecursiveIteratorIterator($iterator) as $file) { foreach (new RecursiveIteratorIterator($iterator) as $file) {
if (strpos((string)$file, ".php") !== false) { if (strpos((string)$file, ".php") !== false) {
$totalSize += $file->getSize(); if ($file->getSize() < 100000 ) {
$testProviderArray[$frameworkName . "::" . $file->getBasename()] = [$file->getPathname(), $frameworkName]; $testProviderArray[$frameworkName . "::" . $file->getBasename()] = [$file->getPathname(), $frameworkName];
} }
} }
} }
}
if (count($testProviderArray) === 0) { if (count($testProviderArray) === 0) {
throw new Exception("ERROR: Validation testsuite frameworks not found - run `git submodule update --init --recursive` to download."); throw new Exception("ERROR: Validation testsuite frameworks not found - run `git submodule update --init --recursive` to download.");
} }