public function __construct(TransportResponse $response) { parent::__construct($response); $this->data = json_decode($response->getContent()); }
/** * @dataProvider invalidResultProvider */ public function testInvalidRequest($transportResponse) { $response = new Response($transportResponse); $this->assertFalse($response->isSuccessful()); $this->assertNotNull($response->getError()); }