Exemplo n.º 1
0
 public function setUp()
 {
     $configuration = TestHelper::getConfiguration();
     $this->eventDispatcher = $this->getMock('\\Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
     $this->httpClient = new HttpClient();
     $this->requestHandler = new ProductionRequestHandler($this->eventDispatcher, $this->httpClient, $configuration['apiKey']);
     $this->sut = new Client($this->requestHandler);
 }
Exemplo n.º 2
0
 public function setUp()
 {
     $configuration = TestHelper::getConfiguration();
     $this->eventDispatcher = $this->getMock('\\Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
     $this->productionHttpClient = new Client();
     $this->productionRequestHandler = new StagingRequestHandler($this->eventDispatcher, $this->productionHttpClient, $configuration['apiKey']);
     $this->requestHandler = $this->getMock('\\Triquanta\\IziTravel\\Client\\RequestHandlerInterface');
 }