Esempio n. 1
0
 public function testCanGetImageDataBasedOnAnImageUrl()
 {
     $blob = file_get_contents(__DIR__ . '/_files/image.png');
     $this->setMockResponse($this->client, array(new Response(200, array(), $blob)));
     $this->assertSame($blob, $this->client->getImageDataFromUrl($this->client->getImageUrl('id')));
 }