public function testRouterMayBeInjected() { $app = new Application(); $router = new Router\SimpleRouteStack(); $app->setRouter($router); $this->assertSame($router, $app->getRouter()); }