public function testHttpFlowEventNotInstanceOfEventInterface() { $this->setExpectedException('RuntimeException'); chdir(__DIR__ . '/app'); $app = new App(); $request = (new ServerRequest())->withUri(new Uri('/'))->withMethod('GET'); $response = new Response(); $app->getContainer()->set('http_flow_event', new stdClass()); $response = $app->run($request, $response); }