PHP Class PHPUnit_Util_TestDox_ResultPrinter, qcodo

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

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

addError() public méthode

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

addFailure() public méthode

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 méthode

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

addSkippedTest() public méthode

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

doEndClass() protected méthode

protected doEndClass ( )

endClass() protected méthode

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

endRun() protected méthode

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

endTest() public méthode

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

endTestSuite() public méthode

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

flush() public méthode

Flush buffer and close output.
public flush ( )

onTest() protected méthode

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

startClass() protected méthode

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

startRun() protected méthode

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

startTest() public méthode

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

startTestSuite() public méthode

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

Property Details

$currentTestClassPrettified protected_oe property

protected string $currentTestClassPrettified
Résultat string

$currentTestMethodPrettified protected_oe property

protected string $currentTestMethodPrettified
Résultat string

$failed protected_oe property

protected int $failed
Résultat integer

$incomplete protected_oe property

protected int $incomplete
Résultat integer

$prettifier protected_oe property

protected PHPUnit_Util_TestDox_NamePrettifier $prettifier
Résultat PHPUnit_Util_TestDox_NamePrettifier

$skipped protected_oe property

protected int $skipped
Résultat integer

$successful protected_oe property

protected int $successful
Résultat integer

$testClass protected_oe property

protected string $testClass
Résultat string

$testStatus protected_oe property

protected int $testStatus
Résultat integer

$testTypeOfInterest protected_oe property

protected string $testTypeOfInterest
Résultat string

$tests protected_oe property

protected array $tests
Résultat array