Beispiel #1
0
 public function testShouldCrop()
 {
     $resource = $this->getMockBuilder('Imanee\\ImageResource\\GDResource')->setMethods(['crop'])->getMock();
     $resource->expects($this->once())->method('crop')->with(50, 50, 200, 200);
     $this->model->setResource($resource);
     $this->model->crop(50, 50, 200, 200);
 }