Beispiel #1
0
 /**
  * @expectedException \Graphite\Events\Exception
  */
 public function testSetParamsException()
 {
     $event = new Event('event1');
     $event->setParams('1');
     $event->setParams(1);
     $event->setParams(null);
     $event->setParams(false);
 }
Beispiel #2
0
 /**
  * @param Event $event
  * @throws \Graphite\Events\Exception
  */
 public static function testCallbackWithStop(Event $event)
 {
     $event->setParams(['stop' => true]);
     $event->stopPropagation();
 }