Пример #1
0
 public function testShouldRotate()
 {
     $resource = $this->getMockBuilder('Imanee\\ImageResource\\GDResource')->setMethods(['rotate'])->getMock();
     $resource->expects($this->once())->method('rotate')->with(90);
     $this->model->setResource($resource);
     $this->model->rotate(90);
 }