From cd4c6d66d999bb51f01fb2d3b6c1f4fc40321b17 Mon Sep 17 00:00:00 2001 From: Sara Itani Date: Fri, 24 Mar 2017 10:30:07 -0700 Subject: [PATCH] Add validation test filesize threshold --- tests/Validation/ValidationTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Validation/ValidationTest.php b/tests/Validation/ValidationTest.php index 79ca6c8..1be9e69 100644 --- a/tests/Validation/ValidationTest.php +++ b/tests/Validation/ValidationTest.php @@ -30,8 +30,9 @@ class ValidationTest extends TestCase foreach (new RecursiveIteratorIterator($iterator) as $file) { if (strpos((string)$file, ".php") !== false) { - $totalSize += $file->getSize(); - $testProviderArray[$frameworkName . "::" . $file->getBasename()] = [$file->getPathname(), $frameworkName]; + if ($file->getSize() < 100000 ) { + $testProviderArray[$frameworkName . "::" . $file->getBasename()] = [$file->getPathname(), $frameworkName]; + } } } }