/** * */ 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'])); }
/** * */ function test_stopped() { $event = new TestEvent(); $this->assertFalse($event->stopped()); }