Преглед изворни кода

[GENERIC] Unittests:

- patch to fix a phpunit problem on Windows (massive performance increasement)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17675 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas пре 16 година
родитељ
комит
f182e40b68
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      tests/TestHelper.php

+ 4 - 2
tests/TestHelper.php

@@ -47,8 +47,10 @@ $zfCoreTests   = "$zfRoot/tests";
 /*
  * Omit from code coverage reports the contents of the tests directory
  */
-foreach (array('php', 'phtml', 'csv') as $suffix) {
-    PHPUnit_Util_Filter::addDirectoryToFilter($zfCoreTests, ".$suffix");
+if (defined('TESTS_GENERATE_REPORT') && TESTS_GENERATE_REPORT === true) {
+    foreach (array('php', 'phtml', 'csv') as $suffix) {
+        PHPUnit_Util_Filter::addDirectoryToFilter($zfCoreTests, ".$suffix");
+    }
 }
 
 /*