eZ\Bundle\EzPublishCoreBundle\Tests\Imagine\Filter\Loader\CropFilterLoaderTest::testLoad PHP Method

testLoad() public method

public testLoad ( )
    public function testLoad()
    {
        $width = 123;
        $height = 789;
        $offsetX = 100;
        $offsetY = 200;
        $image = $this->getMock('\\Imagine\\Image\\ImageInterface');
        $this->innerLoader->expects($this->once())->method('load')->with($image, array('size' => array($width, $height), 'start' => array($offsetX, $offsetY)))->will($this->returnValue($image));
        $this->assertSame($image, $this->loader->load($image, array($width, $height, $offsetX, $offsetY)));
    }