Browse Source

[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 years ago
parent
commit
f182e40b68
1 changed files with 4 additions and 2 deletions
  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
  * 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");
+    }
 }
 }
 
 
 /*
 /*