protected function setUp()
 {
     $this->serializer = Mockery::mock('League\\Tactician\\Logger\\PropertySerializer\\PropertySerializer');
     $this->serializer->shouldReceive('encode')->andReturn('!!!');
     $this->formatter = new ClassPropertiesFormatter($this->serializer);
 }
 /**
  * @param object $command
  * @param Exception $exception
  * @return string|null
  */
 public function commandFailed($command, Exception $exception)
 {
     $exceptionClass = get_class($exception);
     $exceptionMessage = $exception->getMessage();
     return 'Command failed: ' . get_class($command) . ' ' . $this->serializer->encode($command) . " threw the exception {$exceptionClass} ({$exceptionMessage})";
 }
 protected function setUp()
 {
     $this->serializer = Mockery::mock(PropertySerializer::class);
     $this->serializer->shouldReceive('encode')->andReturn('!!!');
     $this->formatter = new ClassPropertiesFormatter($this->serializer);
 }