Ejemplo n.º 1
0
 public function testClearEvent()
 {
     $testObject = $this->getMock('stdClass', array('testCallback1'));
     $testObject->expects($this->never())->method('testCallback1');
     EventManager::register('test.event1', array($testObject, 'testCallback1'));
     EventManager::clear('test.event1');
     $event = new Event('test.event1');
     $event->trigger();
 }