PHP Class PHPUnit_Util_TestDox_ResultPrinter, qcodo

Author: Sebastian Bergmann ([email protected])
Inheritance: extends PHPUnit_Util_Printer, implements PHPUnit_Framework_TestListener
Datei anzeigen Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Property Type Description
$currentTestClassPrettified string
$currentTestMethodPrettified string
$failed integer
$incomplete integer
$prettifier PHPUnit_Util_TestDox_NamePrettifier
$skipped integer
$successful integer
$testClass string
$testStatus integer
$testTypeOfInterest string
$tests array

Public Methods

Method Description
__construct ( resource $out = NULL ) Constructor.
addError ( PHPUnit_Framework_Test $test, Exception $e, float $time ) An error occurred.
addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time ) A failure occurred.
addIncompleteTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) Incomplete test.
addSkippedTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) Skipped test.
endTest ( PHPUnit_Framework_Test $test, float $time ) A test ended.
endTestSuite ( PHPUnit_Framework_TestSuite $suite ) A testsuite ended.
flush ( ) Flush buffer and close output.
startTest ( PHPUnit_Framework_Test $test ) A test started.
startTestSuite ( PHPUnit_Framework_TestSuite $suite ) A testsuite started.

Protected Methods

Method Description
doEndClass ( )
endClass ( string $name ) Handler for 'end class' event.
endRun ( ) Handler for 'end run' event.
onTest ( string $name, boolean $success = TRUE ) Handler for 'on test' event.
startClass ( string $name ) Handler for 'start class' event.
startRun ( ) Handler for 'start run' event.

Method Details

__construct() public method

Constructor.
public __construct ( resource $out = NULL )
$out resource

addError() public method

An error occurred.
public addError ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

addFailure() public method

A failure occurred.
public addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time )
$test PHPUnit_Framework_Test
$e PHPUnit_Framework_AssertionFailedError
$time float

addIncompleteTest() public method

Incomplete test.
public addIncompleteTest ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

addSkippedTest() public method

Skipped test.
public addSkippedTest ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

doEndClass() protected method

protected doEndClass ( )

endClass() protected method

Handler for 'end class' event.
protected endClass ( string $name )
$name string

endRun() protected method

Handler for 'end run' event.
protected endRun ( )

endTest() public method

A test ended.
public endTest ( PHPUnit_Framework_Test $test, float $time )
$test PHPUnit_Framework_Test
$time float

endTestSuite() public method

A testsuite ended.
public endTestSuite ( PHPUnit_Framework_TestSuite $suite )
$suite PHPUnit_Framework_TestSuite

flush() public method

Flush buffer and close output.
public flush ( )

onTest() protected method

Handler for 'on test' event.
protected onTest ( string $name, boolean $success = TRUE )
$name string
$success boolean

startClass() protected method

Handler for 'start class' event.
protected startClass ( string $name )
$name string

startRun() protected method

Handler for 'start run' event.
protected startRun ( )

startTest() public method

A test started.
public startTest ( PHPUnit_Framework_Test $test )
$test PHPUnit_Framework_Test

startTestSuite() public method

A testsuite started.
public startTestSuite ( PHPUnit_Framework_TestSuite $suite )
$suite PHPUnit_Framework_TestSuite

Property Details

$currentTestClassPrettified protected_oe property

protected string $currentTestClassPrettified
return string

$currentTestMethodPrettified protected_oe property

protected string $currentTestMethodPrettified
return string

$failed protected_oe property

protected int $failed
return integer

$incomplete protected_oe property

protected int $incomplete
return integer

$prettifier protected_oe property

protected PHPUnit_Util_TestDox_NamePrettifier $prettifier
return PHPUnit_Util_TestDox_NamePrettifier

$skipped protected_oe property

protected int $skipped
return integer

$successful protected_oe property

protected int $successful
return integer

$testClass protected_oe property

protected string $testClass
return string

$testStatus protected_oe property

protected int $testStatus
return integer

$testTypeOfInterest protected_oe property

protected string $testTypeOfInterest
return string

$tests protected_oe property

protected array $tests
return array