diff --git a/src/Extention.php b/src/Extention.php new file mode 100644 index 0000000..6ef9ef7 --- /dev/null +++ b/src/Extention.php @@ -0,0 +1,19 @@ +getName()); +} + + public function addError(PHPUnit_Framework_Test $test, Exception $e, $time){ +die("err"); + print_r($test->getName()); + } + + public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time){ + $name=get_class($test).'::'.$test->getName(); + $message=$e->getMessage(); + echo("##### $name\n$message\n"); +} + + public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time){} + + public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time){} + + public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time){} + + public function startTest(PHPUnit_Framework_Test $test){} + + public function endTest(PHPUnit_Framework_Test $test, $time){ + print_r( $test->getActualOutput()); +} + + public function startTestSuite(PHPUnit_Framework_TestSuite $suite){ + $this->stack[$suite->getName()]='yes'; + } + + public function endTestSuite(PHPUnit_Framework_TestSuite $suite){ + unset($this->stack[$suite->getName()]); + if(count($this->stack)==0){ + echo "\n\nALLDONE\n\n"; + } + } + +} +