Changeset 349

Show
Ignore:
Timestamp:
02/01/08 16:01:24 (6 months ago)
Author:
hans
Message:

Added some debug logging to BatchTest and also added a require_once for the PHPUnit_Framework class. The reason for this latter addition is that I was getting strange "silent death" PHP errors due to a cyclic requirement in PHPUnit/Framework.php and PHPUnit/Framework/TestListener.php; adding this require() seems to have fixed the issue -- and shouldn't hurt anything.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/classes/phing/tasks/ext/phpunit/BatchTest.php

    r325 r349  
    167167                        $definedClasses = PHPUnitUtil::getDefinedClasses($filename, $this->classpath); 
    168168                         
     169                        foreach($definedClasses as $definedClass) { 
     170                                $this->project->log("(PHPUnit) Adding $definedClass (from $filename) to tests.", Project::MSG_DEBUG); 
     171                        } 
     172                         
    169173                        $declaredClasses = array_merge($declaredClasses, $definedClasses); 
    170174                } 
  • branches/2.3/classes/phing/tasks/ext/phpunit/PHPUnitTask.php

    r325 r349  
    107107                if (PHPUnitUtil::$installedVersion == 3) 
    108108                { 
     109                        require_once 'PHPUnit/Framework.php'; 
    109110                        require_once 'PHPUnit/Util/Filter.php'; 
    110111                         
     
    124125                else 
    125126                { 
     127                        require_once 'PHPUnit2/Framework.php'; 
    126128                        require_once 'PHPUnit2/Util/Filter.php'; 
    127129