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)));
}