Source for file ResultPrinter.php
Documentation is available at ResultPrinter.php
// +------------------------------------------------------------------------+
// +------------------------------------------------------------------------+
// | Copyright (c) 2002-2005 Sebastian Bergmann <sb@sebastian-bergmann.de>. |
// +------------------------------------------------------------------------+
// | This source file is subject to version 3.00 of the PHP License, |
// | that is available at http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
// $Id: ResultPrinter.php,v 1.6.2.2 2005/02/04 10:01:55 sebastian Exp $
require_once 'PHPUnit2/Framework/AssertionFailedError.php';
require_once 'PHPUnit2/Framework/Test.php';
require_once 'PHPUnit2/Framework/TestListener.php';
require_once 'PHPUnit2/Framework/TestSuite.php';
require_once 'PHPUnit2/Extensions/TestDox/NamePrettifier.php';
require_once 'PHPUnit2/Util/Printer.php';
* @author Sebastian Bergmann <sb@sebastian-bergmann.de>
* @copyright Copyright © 2002-2005 Sebastian Bergmann <sb@sebastian-bergmann.de>
* @license http://www.php.net/license/3_0.txt The PHP License, Version 3.0
// {{{ Instance Variables
* @var PHPUnit2_Extensions_TestDox_NamePrettifier
// {{{ public function __construct($out = NULL)
// {{{ public function __destruct()
// {{{ public function factory($type, $out)
public static function factory($type, $out = NULL ) {
$class = 'PHPUnit2_Extensions_TestDox_ResultPrinter_' . $type;
if (@require_once('PHPUnit2/Extensions/TestDox/ResultPrinter/' . $type . '.php')) {
$object = new $class($out);
'Could not load class %s.',
// {{{ public function addError(PHPUnit2_Framework_Test $test, Exception $e)
* @param PHPUnit2_Framework_Test $test
public function addError(PHPUnit2_Framework_Test $test, Exception $e) {
// {{{ public function addFailure(PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e)
* @param PHPUnit2_Framework_Test $test
* @param PHPUnit2_Framework_AssertionFailedError $e
public function addFailure(PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $e) {
// {{{ public function addIncompleteTest(PHPUnit2_Framework_Test $test, Exception $e)
* @param PHPUnit2_Framework_Test $test
// {{{ public function startTestSuite(PHPUnit2_Framework_TestSuite $suite)
* @param PHPUnit2_Framework_TestSuite $suite
// {{{ public function endTestSuite(PHPUnit2_Framework_TestSuite $suite)
* @param PHPUnit2_Framework_TestSuite $suite
public function endTestSuite(PHPUnit2_Framework_TestSuite $suite) {
// {{{ public function startTest(PHPUnit2_Framework_Test $test)
* @param PHPUnit2_Framework_Test $test
public function startTest(PHPUnit2_Framework_Test $test) {
// {{{ public function endTest(PHPUnit2_Framework_Test $test)
* @param PHPUnit2_Framework_Test $test
public function endTest(PHPUnit2_Framework_Test $test) {
// {{{ abstract protected function startClass($name)
* Handler for 'start class' event.
// {{{ abstract protected function onTest($name)
* Handler for 'on test' event.
abstract protected function onTest($name);
// {{{ abstract protected function endClass($name)
* Handler for 'end class' event.
abstract protected function endClass($name);
// {{{ abstract protected function startRun()
* Handler for 'start run' event.
// {{{ abstract protected function endRun()
* Handler for 'end run' event.
abstract protected function endRun();
* vim600: et sw=2 ts=2 fdm=marker
Documentation generated on Mon, 11 Mar 2019 14:19:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|