Changeset 308

Show
Ignore:
Timestamp:
11/15/07 13:45:57 (8 months ago)
Author:
mrook
Message:

#178 - Count test results of individual test suites, not just the entire run

Files:

Legend:

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

    r301 r308  
    3232class SummaryPHPUnit3ResultFormatter extends PHPUnit3ResultFormatter 
    3333{ 
    34         function endTestRun(
     34        function endTestSuite(PHPUnit_Framework_TestSuite $suite
    3535        { 
    3636                $sb = "Tests run: " . $this->getRunCount(); 
     
    4141                $sb.= ", Time elapsed: " . sprintf('%0.5f', $this->getElapsedTime()) . " s\n"; 
    4242                 
    43                 parent::endTestRun(); 
     43                parent::endTestSuite($suite); 
    4444                 
    4545                if ($this->out != NULL) 
  • trunk/classes/phing/tasks/ext/phpunit/phpunit3/SummaryPHPUnit3ResultFormatter.php

    r307 r308  
    3232class SummaryPHPUnit3ResultFormatter extends PHPUnit3ResultFormatter 
    3333{ 
    34         function endTestRun(
     34        function endTestSuite(PHPUnit_Framework_TestSuite $suite
    3535        { 
    3636                $sb = "Tests run: " . $this->getRunCount(); 
     
    4141                $sb.= ", Time elapsed: " . sprintf('%0.5f', $this->getElapsedTime()) . " s\n"; 
    4242                 
    43                 parent::endTestRun(); 
     43                parent::endTestSuite($suite); 
    4444                 
    4545                if ($this->out != NULL)