Documentation

TestListener

This interface, as well as the associated mechanism for extending PHPUnit, will be removed in PHPUnit 10. There is no alternative available in this version of PHPUnit.

Tags
no-named-arguments

Parameter names are not covered by the backward compatibility promise for PHPUnit

see
https://github.com/sebastianbergmann/phpunit/issues/4676

Table of Contents

Methods

addError()  : void
addFailure()  : void
addIncompleteTest()  : void
addRiskyTest()  : void
addSkippedTest()  : void
addWarning()  : void
endTest()  : void
endTestSuite()  : void
startTest()  : void
startTestSuite()  : void

Methods

addError()

public addError(Test $test, Throwable $t, float $time) : void
Parameters
$test : Test
$t : Throwable
$time : float

addFailure()

public addFailure(Test $test, AssertionFailedError $e, float $time) : void
Parameters
$test : Test
$e : AssertionFailedError
$time : float

addIncompleteTest()

public addIncompleteTest(Test $test, Throwable $t, float $time) : void
Parameters
$test : Test
$t : Throwable
$time : float

addRiskyTest()

public addRiskyTest(Test $test, Throwable $t, float $time) : void
Parameters
$test : Test
$t : Throwable
$time : float

addSkippedTest()

public addSkippedTest(Test $test, Throwable $t, float $time) : void
Parameters
$test : Test
$t : Throwable
$time : float

addWarning()

public addWarning(Test $test, Warning $e, float $time) : void
Parameters
$test : Test
$e : Warning
$time : float

endTest()

public endTest(Test $test, float $time) : void
Parameters
$test : Test
$time : float

endTestSuite()

public endTestSuite(TestSuite $suite) : void
Parameters
$suite : TestSuite

startTestSuite()

public startTestSuite(TestSuite $suite) : void
Parameters
$suite : TestSuite

        
On this page

Search results