transform() public method

Transform the image
public transform ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The event instance
Beispiel #1
0
 /**
  * @expectedException Imbo\Exception\TransformationException
  * @expectedExceptionMessage level must be between 0 and 100
  * @expectedExceptionCode 400
  */
 public function testThrowsExceptionOnInvalidLevel()
 {
     $event = $this->getMock('Imbo\\EventManager\\Event');
     $event->expects($this->once())->method('getArgument')->with('params')->will($this->returnValue(['level' => 200]));
     $this->transformation->transform($event);
 }