Exemplo n.º 1
0
 protected function executeApi(Configuration $config)
 {
     $client = new Client();
     $api = new Jobs($config, $client);
     $repository = new JobsRepository($api, $config);
     $repository->setLogger($this->logger);
     $repository->persist();
 }
 /**
  * @test
  */
 public function response500()
 {
     $statusCode = 500;
     $response = $this->createResponseMock($statusCode, 'Internal Server Error', 'response');
     $api = $this->createApiMock($response, $statusCode);
     $config = $this->createConfiguration();
     $logger = $this->createLoggerMock();
     $object = new JobsRepository($api, $config);
     $object->setLogger($logger);
     $object->persist();
 }