/** * @covers Phossa\Event\EventManager::getEventQueue */ public function testGetEventQueue() { $l = new Listener(); $this->object->attachListener($l); // check attached event $q1 = $this->object->getEventQueue('evtTest2'); foreach ($q1 as $data) { $this->assertTrue(20 === $data['priority']); $this->assertTrue([$l, 'testD'] === $data['data']); } // attach static class again $this->object->attachListener('Phossa\\Event\\ListenerStatic'); $q2 = $this->object->getEventQueue('evtTest2'); // now has 2 callable in the queue $this->assertTrue(2 === $q2->count()); }