/** * @dataProvider resourceProvider */ public function testloadRouteCollection($resource, $expectedCount) { $router = new Router(new Request()); $routes = $router->loadRouteCollection($resource); $this->assertInstanceOf('Fapi\\Component\\Routing\\RouteCollection', $routes); $this->assertEquals($expectedCount, $routes->count()); }