/** * @param string $eventName the event name we wants the listeners for. * @return array of objects */ function createFor($eventName) { $me =& CopixListenerFactory::instance(); $me->_loadListeners(); $me->_createForEvent($eventName); return $me->_hashListened[$eventName]; }
public function testSingleton() { $singleton = CopixListenerFactory::instance(); $singleton2 = CopixListenerFactory::instance(); $this->assertSame($singleton, $singleton2); }