/** * @expectedException \SlevomatZboziApi\Response\ResponseErrorException * @expectedExceptionMessage Slevomat API invalid response: invalid expectedDeliveryDate nonsense. */ public function testGetExpectedDeliveryDateThrowsResponseExceptionForResponsesWithInvalidExpectedDeliveryDateKey() { $response = new ZboziApiResponse(200, ['expectedDeliveryDate' => 'nonsense']); $this->responseValidator->getExpectedDeliveryDate($response); }