Beispiel #1
0
 public function testSetLoggerSetsTheLoggerOnTheBuilder()
 {
     $builder = m::mock(FlowBuilderInterface::class, LoggerAwareInterface::class);
     $logger = m::mock(LoggerInterface::class);
     Flow::setBuilder($builder);
     $builder->shouldReceive('setLogger')->with($logger)->once();
     Flow::useLogger($logger);
 }