Пример #1
0
 /**
  *
  */
 public function testPropagation()
 {
     $event = new Event('event1');
     $this->assertFalse($event->isPropagationStopped());
     $event->stopPropagation();
     $this->assertTrue($event->isPropagationStopped());
 }
Пример #2
0
 /**
  * @param Event $event
  * @throws \Graphite\Events\Exception
  */
 public static function testCallbackWithStop(Event $event)
 {
     $event->setParams(['stop' => true]);
     $event->stopPropagation();
 }