예제 #1
0
 public function testItCanReadFromBlob()
 {
     $file = $this->getImageFile(300, 500);
     $image = new Image($file, false);
     $file2 = $this->getImageFile(200, 300);
     $return = $image->readFromBlob($file2->getRaw());
     $this->assertTrue(is_string($image->toBlob()));
     $this->assertEquals($image, $return);
 }