Proxy to RelativeResizeFilterLoader.
public function testLoadWiden() { $width = 900; $height = 600; $origWidth = 770; $origHeight = 377; $box = new Box($origWidth, $origHeight); $image = $this->getMock('\\Imagine\\Image\\ImageInterface'); $image->expects($this->once())->method('getSize')->will($this->returnValue($box)); $this->innerLoader->expects($this->once())->method('load')->with($image, $this->equalTo(array('widen' => $width)))->will($this->returnValue($image)); $this->assertSame($image, $this->loader->load($image, array($width, $height))); }