public function testCanGetWidth() { $this->_driverMock->expects($this->exactly(2))->method('getSize')->will($this->returnValue(array(50, 100))); $i = new Zend_Image('doesnt-matter.jpg', $this->_driverMock); $this->assertEquals(50, $i->getWidth()); $this->assertEquals(100, $i->getHeight()); }