Пример #1
0
 /**
  *
  */
 function test_string_key_args()
 {
     $event = new TestEvent();
     $callable = function (TestEvent $event, $foo) {
         return $event->event() . $foo;
     };
     $this->assertEquals('test_event/bar', $event($callable, ['foo' => '/bar']));
 }
Пример #2
0
 /**
  *
  */
 function test_stopped()
 {
     $event = new TestEvent();
     $this->assertFalse($event->stopped());
 }