public function testEvent()
 {
     $item = new ParameterBag();
     $modifier = new CallbackTransformer(function () {
     });
     $exception = new ModificationException();
     $event = new FailedItemModificationEvent($item, $modifier, $exception);
     $this->assertSame($item, $event->getItem());
     $this->assertSame($modifier, $event->getModifier());
     $this->assertSame($exception, $event->getException());
     $this->assertFalse($event->getContinue());
     $event->setContinue(true);
     $this->assertTrue($event->getContinue());
 }
 /**
  * @param FailedItemModificationEvent $event
  */
 public function onItemModificationFailure(FailedItemModificationEvent $event)
 {
     $this->logger->warning($event->getException()->getMessage());
 }
 /**
  * @param FailedItemModificationEvent $event
  */
 public function onItemModificationFailure(FailedItemModificationEvent $event)
 {
     $this->output->writeln(sprintf('<error>%s</error>', $event->getException()->getMessage()));
 }