public function testMapCanReceiveARouteObject() { $route = Routes\Segment::factory(array('route' => '/:controller')); $map = $this->app->map($route, function ($params, $app) { }); $this->assertSame($route, $map->route()); }