Current Path : /usr/opt/php56/share/pear/test/MDB2/tests/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/php56/share/pear/test/MDB2/tests/Console_TestListener.php |
<?php class Console_TestListener extends PHPUnit_TestListener { function addError(&$test, &$t) { $this->_errors += 1; echo(" Error $this->_errors in ".$test->getName()." : $t\n"); } function addFailure(&$test, &$t) { $this->_fails += 1; if ($this->_fails == 1) { echo("\n"); } echo("Failure $this->_fails : $t\n"); } function endTest(&$test) { if ($this->_fails == 0 && $this->_errors == 0) { echo(' Test passed'); } else { echo("There were $this->_fails failures for ".$test->getName()."\n"); echo("There were $this->_errors errors for ".$test->getName()."\n"); } echo("\n"); } function startTest(&$test) { $this->_fails = 0; $this->_errors = 0; echo(get_class($test).' : Starting '.$test->getName().' ...'); } } ?>