Esempio n. 1
0
 public function testDataReturnsOverwrittenDimensions()
 {
     $path = vfsStream::url('webroot/img/flower.png');
     $img = imagecreate(10, 5);
     $black = imagecolorallocate($img, 0, 0, 0);
     $this->createImage($img, $path);
     $image = new Image();
     $image->load($path);
     $image->data('width', 20);
     $image->data('height', 40);
     $this->assertSame(20, $image->data('width'));
     $this->assertSame(40, $image->data('height'));
 }