/**
  * Tests construct.
  */
 public function testConstruct()
 {
     /** @var Procedure $procedure */
     $procedure = $this->getMockBuilder('Transfer\\Procedure\\Procedure')->getMock();
     /** @var ProcessorInterface $processor */
     $processor = $this->getMockBuilder('Transfer\\Processor\\ProcessorInterface')->getMock();
     $event = new PostProcedureEvent($procedure, $processor);
     $this->assertSame($procedure, $event->getProcedure());
     $this->assertSame($processor, $event->getProcessor());
 }
Beispiel #2
0
 /**
  * Logs post procedure event.
  *
  * @param Events\PostProcedureEvent $event
  */
 public function logPostProcedureEvent(Events\PostProcedureEvent $event)
 {
     $procedure = $event->getProcedure();
     $this->logger->info(sprintf('Finished procedure "%s"', $procedure->getName()));
 }