zoe             Wed Jul  1 20:17:35 2009 UTC

  Modified files:              
    /phpruntests/src/testgroup  rtPhpTestGroup.php 
  Log:
  fix to deal with directories that have no runnable tests
  
http://cvs.php.net/viewvc.cgi/phpruntests/src/testgroup/rtPhpTestGroup.php?r1=1.12&r2=1.13&diff_format=u
Index: phpruntests/src/testgroup/rtPhpTestGroup.php
diff -u phpruntests/src/testgroup/rtPhpTestGroup.php:1.12 
phpruntests/src/testgroup/rtPhpTestGroup.php:1.13
--- phpruntests/src/testgroup/rtPhpTestGroup.php:1.12   Mon Jun 29 22:00:13 2009
+++ phpruntests/src/testgroup/rtPhpTestGroup.php        Wed Jul  1 20:17:35 2009
@@ -25,12 +25,12 @@
     }
 
     public function init(rtRuntestsConfiguration $runConfiguration)
-    {
+    {      
         $this->testFiles = rtUtil::getTestList($this->testDirectory);
 
         foreach ($this->testFiles as $testFileName) {
        
-            //testFiles is a list of file namnes relative to the current 
working directory
+            //testFiles is a list of file names relative to the current 
working directory
 
             if (!file_exists($testFileName)) {
                 echo rtText::get('invalidTestFileName', array($testFileName));
@@ -60,6 +60,9 @@
 
     public function runGroup(rtRuntestsConfiguration $runConfiguration)
     {
+        if (count($this->testCases) == 0) {
+            return;
+        }
         foreach ($this->testCases as $testCase) {
 
             $testCase->executeTest($runConfiguration);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to