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