transform() публичный Метод

Transform the image
public transform ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The event instance
Пример #1
0
 /**
  * @covers Imbo\Image\Transformation\Crop::transform
  * @expectedException Imbo\Exception\TransformationException
  * @expectedExceptionCode 400
  * @expectedExceptionMessage Missing required parameter: height
  */
 public function testThrowsExceptionWhenHeightIsMissing()
 {
     $event = $this->getMock('Imbo\\EventManager\\Event');
     $event->expects($this->at(0))->method('getArgument')->with('image')->will($this->returnValue($this->getMock('Imbo\\Model\\Image')));
     $event->expects($this->at(1))->method('getArgument')->with('params')->will($this->returnValue(array('width' => 123)));
     $transformation = new Crop();
     $transformation->transform($event);
 }