eZ\Bundle\EzPublishCoreBundle\Tests\Imagine\Filter\Loader\SwirlFilterLoaderTest::testLoadWithOption PHP Method

testLoadWithOption() public method

public testLoadWithOption ( $degrees )
    public function testLoadWithOption($degrees)
    {
        $image = $this->getMock('\\Imagine\\Image\\ImageInterface');
        $this->filter->expects($this->once())->method('setOption')->with('degrees', $degrees);
        $this->filter->expects($this->once())->method('apply')->with($image)->will($this->returnValue($image));
        $this->assertSame($image, $this->loader->load($image, array($degrees)));
    }