Exemple #1
0
 /**
  * @dataProvider receiveDataProvider
  *
  * @param array $parameters
  * @param array $response
  *
  * @throws ServiceException
  * @throws UndefinedCallbackException
  */
 public function testProcessDataInterface($parameters, $response)
 {
     $orderStatus = \Mockery::mock('\\Hcapi\\Interfaces\\IShopImplementation');
     $orderStatus->shouldReceive('getResponse')->with($parameters)->once()->andReturn($response);
     $service = new OrderStatus();
     $this->assertNotNull($service->processData($orderStatus, $parameters));
 }