Ejemplo n.º 1
0
 public function testOne()
 {
     $info = Embed\ImageInfo\Curl::getImageInfo(['value' => 'http://www.mixdecultura.ro/wp-content/uploads/2013/03/galicia-locuinte-celtice.jpg']);
     $this->assertEquals($info, ['width' => 600, 'height' => 408, 'size' => 244800, 'mime' => 'image/jpeg']);
 }
Ejemplo n.º 2
0
 public function testCurl()
 {
     $info = Embed\ImageInfo\Curl::getImagesInfo([['value' => self::TEST_IMAGE_URL]]);
     $this->assertEquals($info[0], ['width' => self::TEST_IMAGE_WIDTH, 'height' => self::TEST_IMAGE_HEIGHT, 'size' => self::TEST_IMAGE_SIZE, 'mime' => self::TEST_IMAGE_MIME, 'value' => self::TEST_IMAGE_URL]);
 }
Ejemplo n.º 3
0
 public function testOne()
 {
     $info = Embed\ImageInfo\Curl::getImageInfo(['value' => 'http://a.images.blip.tv/NostalgiaCritic-NCTheMatrix187.jpg']);
     $this->assertEquals($info, ['width' => 620, 'height' => 274, 'size' => 169880, 'mime' => 'image/jpeg']);
 }