public function testAddStoresFunctionsForMaps() { $map = function () { return 1; }; $collection = new RouteCollection(); $collection->add('home', $map); $expects = ['home' => $map]; $routes = $collection->getRoutes(); $this->assertEquals($expects, $routes); }