Author: Christer Edvartsen (cogo@starzinger.net)
Inheritance: extends Transformation, implements Imbo\EventListener\ListenerInterface
Example #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);
 }