Esempio n. 1
0
 public function testCanResize()
 {
     $zendImage = new Zend_Image_Transform(dirname(__FILE__) . '/' . $this->_file300x431, new Zend_Image_Driver_Gd());
     $this->assertEquals(md5($zendImage->resize(150, 150)->getBinary()), md5_file(dirname(__FILE__) . '/' . $this->_file150x150));
 }
Esempio n. 2
0
 public function testCanResize()
 {
     $this->_driverMock->expects($this->once())->method('resize')->with(100, 50);
     $transform = new Zend_Image_Transform('doesnt-matter.jpg', $this->_driverMock);
     $transform->resize(100, 50);
 }