Changeset 376 for branches/2.3

Show
Ignore:
Timestamp:
06/27/08 15:51:26 (5 months ago)
Author:
mrook
Message:

#242 - Log incomplete/skipped tests

Files:

Legend:

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

    r325 r376  
    3838         */ 
    3939        private $logger = NULL; 
    40          
     40 
    4141        function __construct() 
    4242        { 
    43                 $this->logger = new PHPUnit_Util_Log_XML(); 
     43                $this->logger = new PHPUnit_Util_Log_XML(null, true); 
    4444                $this->logger->setWriteDocument(false); 
    4545        } 
    46          
     46 
    4747        function getExtension() 
    4848        { 
    4949                return ".xml"; 
    5050        } 
    51          
     51 
    5252        function getPreferredOutfile() 
    5353        { 
    5454                return "testsuites"; 
    5555        } 
    56          
     56 
    5757        function startTestSuite(PHPUnit_Framework_TestSuite $suite) 
    5858        { 
    5959                parent::startTestSuite($suite); 
    60                  
     60 
    6161                $this->logger->startTestSuite($suite); 
    6262        } 
    63          
     63 
    6464        function endTestSuite(PHPUnit_Framework_TestSuite $suite) 
    6565        { 
    6666                parent::endTestSuite($suite); 
    67                  
     67 
    6868                $this->logger->endTestSuite($suite); 
    6969        } 
    70          
     70 
    7171        function startTest(PHPUnit_Framework_Test $test) 
    7272        { 
    7373                parent::startTest($test); 
    74                  
     74 
    7575                $this->logger->startTest($test); 
    7676        } 
     
    7979        { 
    8080                parent::endTest($test, $time); 
    81                  
     81 
    8282                $this->logger->endTest($test, $time); 
    8383        } 
    84          
     84 
    8585        function addError(PHPUnit_Framework_Test $test, Exception $e, $time) 
    8686        { 
    8787                parent::addError($test, $e, $time); 
    88                  
     88 
    8989                $this->logger->addError($test, $e, $time); 
    9090        } 
     
    100100        { 
    101101                parent::addIncompleteTest($test, $e, $time); 
    102                  
     102 
    103103                $this->logger->addIncompleteTest($test, $e, $time); 
    104104        } 
    105          
     105 
    106106        function endTestRun() 
    107107        { 
    108108                parent::endTestRun(); 
    109                  
     109 
    110110                if ($this->out) 
    111111                {