Changeset 376
- Timestamp:
- 06/27/08 15:51:26 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.3/classes/phing/tasks/ext/phpunit/phpunit3/XMLPHPUnit3ResultFormatter.php
r325 r376 38 38 */ 39 39 private $logger = NULL; 40 40 41 41 function __construct() 42 42 { 43 $this->logger = new PHPUnit_Util_Log_XML( );43 $this->logger = new PHPUnit_Util_Log_XML(null, true); 44 44 $this->logger->setWriteDocument(false); 45 45 } 46 46 47 47 function getExtension() 48 48 { 49 49 return ".xml"; 50 50 } 51 51 52 52 function getPreferredOutfile() 53 53 { 54 54 return "testsuites"; 55 55 } 56 56 57 57 function startTestSuite(PHPUnit_Framework_TestSuite $suite) 58 58 { 59 59 parent::startTestSuite($suite); 60 60 61 61 $this->logger->startTestSuite($suite); 62 62 } 63 63 64 64 function endTestSuite(PHPUnit_Framework_TestSuite $suite) 65 65 { 66 66 parent::endTestSuite($suite); 67 67 68 68 $this->logger->endTestSuite($suite); 69 69 } 70 70 71 71 function startTest(PHPUnit_Framework_Test $test) 72 72 { 73 73 parent::startTest($test); 74 74 75 75 $this->logger->startTest($test); 76 76 } … … 79 79 { 80 80 parent::endTest($test, $time); 81 81 82 82 $this->logger->endTest($test, $time); 83 83 } 84 84 85 85 function addError(PHPUnit_Framework_Test $test, Exception $e, $time) 86 86 { 87 87 parent::addError($test, $e, $time); 88 88 89 89 $this->logger->addError($test, $e, $time); 90 90 } … … 100 100 { 101 101 parent::addIncompleteTest($test, $e, $time); 102 102 103 103 $this->logger->addIncompleteTest($test, $e, $time); 104 104 } 105 105 106 106 function endTestRun() 107 107 { 108 108 parent::endTestRun(); 109 109 110 110 if ($this->out) 111 111 {
