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

testLoad() public method

public testLoad ( )
    public function testLoad()
    {
        $options = array(123, 456);
        $image = $this->getMock('\\Imagine\\Image\\ImageInterface');
        $this->innerLoader->expects($this->once())->method('load')->with($image, array('size' => $options))->will($this->returnValue($image));
        $this->assertSame($image, $this->loader->load($image, $options));
    }