Listener
in package
implements
TestListener
uses
DispatcherWrapper
Table of Contents
Interfaces
- 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.
Properties
- $dispatcher : EventDispatcher
- $skippedTests : mixed
- $startedTests : mixed
- $unsuccessfulTests : mixed
Methods
- __construct() : mixed
- addError() : void
- addFailure() : void
- addIncompleteTest() : void
- addRiskyTest() : void
- Risky test.
- addSkippedTest() : void
- addWarning() : void
- endTest() : void
- endTestSuite() : void
- startTest() : void
- startTestSuite() : void
- dispatch() : mixed
- Compatibility wrapper for dispatcher change between Symfony 4 and 5
- fire() : mixed
Properties
$dispatcher
protected
EventDispatcher
$dispatcher
$skippedTests
protected
mixed
$skippedTests
= []
$startedTests
protected
mixed
$startedTests
= []
$unsuccessfulTests
protected
mixed
$unsuccessfulTests
= []
Methods
__construct()
public
__construct(EventDispatcher $dispatcher) : mixed
Parameters
- $dispatcher : EventDispatcher
addError()
public
addError(Test $test, Throwable $e, float $time) : void
Parameters
addFailure()
public
addFailure(Test $test, AssertionFailedError $e, float $time) : void
Parameters
- $test : Test
- $e : AssertionFailedError
- $time : float
addIncompleteTest()
public
addIncompleteTest(Test $test, Throwable $e, float $time) : void
Parameters
addRiskyTest()
Risky test.
public
addRiskyTest(Test $test, Throwable $e, float $time) : void
Parameters
- $test : Test
- $e : Throwable
- $time : float
Tags
addSkippedTest()
public
addSkippedTest(Test $test, Throwable $e, float $time) : void
Parameters
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
startTest()
public
startTest(Test $test) : void
Parameters
- $test : Test
startTestSuite()
public
startTestSuite(TestSuite $suite) : void
Parameters
- $suite : TestSuite
dispatch()
Compatibility wrapper for dispatcher change between Symfony 4 and 5
protected
dispatch(EventDispatcher $dispatcher, string $eventType, Event $eventObject) : mixed
Parameters
- $dispatcher : EventDispatcher
- $eventType : string
- $eventObject : Event
fire()
protected
fire(mixed $event, TestEvent $eventType) : mixed
Parameters
- $event : mixed
- $eventType : TestEvent