HumHub Documentation (unofficial)

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

$skippedTests

protected mixed $skippedTests = []

$startedTests

protected mixed $startedTests = []

$unsuccessfulTests

protected mixed $unsuccessfulTests = []

Methods

addFailure()

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

addRiskyTest()

Risky test.

public addRiskyTest(Test $test, Throwable $e, float $time) : void
Parameters
$test : Test
$e : Throwable
$time : float
Tags
since

Method available since Release 4.0.0

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

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

        
On this page

Search results