Пример #1
0
 /**
  * @covers \PHP\Manipulator\AHelper::runAction
  */
 public function testManipulateContainterConstraintThrowsExceptionIfConstraintIstNotValidConstraint()
 {
     $abstractHelper = new AHelper();
     $container = new TokenContainer();
     $manipulator = new \stdClass();
     try {
         $abstractHelper->runAction($manipulator, $container);
         $this->fail('Expected exception not thrown');
     } catch (\Exception $e) {
         $this->assertEquals('manipulator is not instance of PHP\\Manipulator\\Action', $e->getMessage(), 'Wrong exception message');
     }
 }