protected function setUp()
 {
     $this->logger = new Logger('test');
     $this->service = ServiceFacade::getInstance($this->logger);
     $this->formats = array('json', 'object', 'xml');
     $this->config = array('url' => 'http://navitia2-ws.ctp.dev.canaltp.fr', 'version' => 'v1', 'token' => Environment::getNavitiaToken());
 }
 /**
  * Test validation
  */
 public function testValidation()
 {
     $config = array('url' => 'http://navitia2-ws.ctp.dev.canaltp.fr', 'version' => 'v1', 'token' => Environment::getNavitiaToken());
     $journeys = array('api' => 'journeys', 'parameters' => array('max_duration' => 0));
     $this->service->processConfiguration($config);
     $result = $this->service->process($journeys);
     $this->assertInstanceOf('Symfony\\Component\\Validator\\ConstraintViolationListInterface', $result);
 }