load() public method

public load ( Imagine\Image\ImageInterface $image, array $options = [] )
$image Imagine\Image\ImageInterface
$options array
 public function testLoad()
 {
     $widthPercent = 40;
     $heightPercent = 125;
     $origWidth = 770;
     $origHeight = 377;
     $expectedWidth = $origWidth * $widthPercent / 100;
     $expectedHeight = $origHeight * $heightPercent / 100;
     $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('size' => array($expectedWidth, $expectedHeight))))->will($this->returnValue($image));
     $this->assertSame($image, $this->loader->load($image, array($widthPercent, $heightPercent)));
 }