Definition at line 5 of file ContinueCallbackTest.php.
◆ testContinueCallBack()
Sabre\Event\ContinueCallbackTest::testContinueCallBack |
( |
| ) |
|
Definition at line 7 of file ContinueCallbackTest.php.
References $r.
9 $ee =
new EventEmitter();
12 $bla =
function() use (&$handlerCounter) {
20 $r = $ee->emit(
'foo', [],
function() use (&$continueCounter) {
24 $this->assertTrue(
$r);
25 $this->assertEquals(3, $handlerCounter);
26 $this->assertEquals(2, $continueCounter);
◆ testContinueCallBackBreak()
Sabre\Event\ContinueCallbackTest::testContinueCallBackBreak |
( |
| ) |
|
Definition at line 30 of file ContinueCallbackTest.php.
References $r.
32 $ee =
new EventEmitter();
35 $bla =
function() use (&$handlerCounter) {
43 $r = $ee->emit(
'foo', [],
function() use (&$continueCounter) {
47 $this->assertTrue(
$r);
48 $this->assertEquals(1, $handlerCounter);
49 $this->assertEquals(1, $continueCounter);
◆ testContinueCallBackBreakByHandler()
Sabre\Event\ContinueCallbackTest::testContinueCallBackBreakByHandler |
( |
| ) |
|
Definition at line 53 of file ContinueCallbackTest.php.
References $r.
55 $ee =
new EventEmitter();
58 $bla =
function() use (&$handlerCounter) {
67 $r = $ee->emit(
'foo', [],
function() use (&$continueCounter) {
71 $this->assertFalse(
$r);
72 $this->assertEquals(1, $handlerCounter);
73 $this->assertEquals(0, $continueCounter);
The documentation for this class was generated from the following file: