public function testCustomEvents() { $app = new Application(); $time = null; $app->subscribe('custom.event', function ($event, $args) use(&$time) { $time = $args; }); $app->getEventEmitter()->emit('custom.event', time()); $this->assertTrue($time !== null); }