Kraken\_Unit\Event\EventEmitterTest::testApiOn_AttachesProperOnHandler_UsingSeveralHandlers PHP Method

testApiOn_AttachesProperOnHandler_UsingSeveralHandlers() public method

public testApiOn_AttachesProperOnHandler_UsingSeveralHandlers ( Kraken\Event\EventEmitterInterface $emitter )
$emitter Kraken\Event\EventEmitterInterface
    public function testApiOn_AttachesProperOnHandler_UsingSeveralHandlers(EventEmitterInterface $emitter)
    {
        $emitter->on('test', $this->expectCallableTwice());
        $emitter->emit('test');
        $emitter->on('test', $this->expectCallableOnce());
        $emitter->emit('test');
    }
EventEmitterTest