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);
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);
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);
testContinueCallBackBreakByHandler()
testContinueCallBackBreak()