/**
  * Load routes collection from YAML fixture routes under Tests\Fixtures directory.
  *
  * @param string $fixtureName name of the class fixture
  */
 protected function loadFromYamlCollectionFixture($fixtureName)
 {
     $collectionLoader = new RestYamlCollectionLoader(new FileLocator(array(__DIR__ . '/../../Fixtures/Routes')), new RestRouteProcessor());
     $controllerLoader = $this->getControllerLoader();
     $resolver = new LoaderResolver(array($collectionLoader, $controllerLoader));
     return $collectionLoader->load($fixtureName, 'rest');
 }
 /**
  * Load routes collection from YAML fixture routes under Tests\Fixtures directory.
  *
  * @param string   $fixtureName   name of the class fixture
  * @param bool     $includeFormat whether or not the requested view format must be included in the route path
  * @param string[] $formats       supported view formats
  * @param string   $defaultFormat default view format
  * @return RouteCollection
  */
 protected function loadFromYamlCollectionFixture($fixtureName, $includeFormat = true, array $formats = array('json' => false, 'xml' => false, 'html' => true), $defaultFormat = null)
 {
     $collectionLoader = new RestYamlCollectionLoader(new FileLocator(array(__DIR__ . '/../../Fixtures/Routes')), new RestRouteProcessor(), $includeFormat, $formats, $defaultFormat);
     $controllerLoader = $this->getControllerLoader();
     $resolver = new LoaderResolver(array($collectionLoader, $controllerLoader));
     return $collectionLoader->load($fixtureName, 'rest');
 }
 /**
  * Load routes collection from YAML fixture routes under Tests\Fixtures directory.
  *
  * @param string   $fixtureName   name of the class fixture
  * @param bool     $includeFormat whether or not the requested view format must be included in the route path
  * @param string[] $formats       supported view formats
  * @param string   $defaultFormat default view format
  *
  * @return RouteCollection
  */
 protected function loadFromYamlCollectionFixture($fixtureName, $includeFormat = true, array $formats = ['json' => false, 'xml' => false, 'html' => true], $defaultFormat = null)
 {
     $collectionLoader = new RestYamlCollectionLoader(new FileLocator([__DIR__ . '/../../Fixtures/Routes']), new RestRouteProcessor(), $includeFormat, $formats, $defaultFormat);
     $controllerLoader = $this->getControllerLoader();
     // LoaderResolver sets the resolvers on the loaders passed to it
     new LoaderResolver([$collectionLoader, $controllerLoader]);
     return $collectionLoader->load($fixtureName, 'rest');
 }