interface TestListener (View source)

A Listener for test progress.

Methods

addError(Test $test, Exception $e, float $time)

An error occurred.

addWarning(Test $test, Warning $e, float $time)

A warning occurred.

addFailure(Test $test, AssertionFailedError $e, float $time)

A failure occurred.

addIncompleteTest(Test $test, Exception $e, float $time)

Incomplete test.

addRiskyTest(Test $test, Exception $e, float $time)

Risky test.

addSkippedTest(Test $test, Exception $e, float $time)

Skipped test.

startTestSuite(TestSuite $suite)

A test suite started.

endTestSuite(TestSuite $suite)

A test suite ended.

startTest(Test $test)

A test started.

endTest(Test $test, float $time)

A test ended.

Details

addError(Test $test, Exception $e, float $time)

An error occurred.

Parameters

Test $test
Exception $e
float $time

addWarning(Test $test, Warning $e, float $time)

A warning occurred.

Parameters

Test $test
Warning $e
float $time

addFailure(Test $test, AssertionFailedError $e, float $time)

A failure occurred.

Parameters

Test $test
AssertionFailedError $e
float $time

addIncompleteTest(Test $test, Exception $e, float $time)

Incomplete test.

Parameters

Test $test
Exception $e
float $time

addRiskyTest(Test $test, Exception $e, float $time)

Risky test.

Parameters

Test $test
Exception $e
float $time

addSkippedTest(Test $test, Exception $e, float $time)

Skipped test.

Parameters

Test $test
Exception $e
float $time

startTestSuite(TestSuite $suite)

A test suite started.

Parameters

TestSuite $suite

endTestSuite(TestSuite $suite)

A test suite ended.

Parameters

TestSuite $suite

startTest(Test $test)

A test started.

Parameters

Test $test

endTest(Test $test, float $time)

A test ended.

Parameters

Test $test
float $time