convert() public method

public convert ( mixed $item ) : mixed
$item mixed
return mixed
Example #1
0
 /**
  * @test
  * @covers Plum\Plum\Converter\LogConverter::__construct()
  * @covers Plum\Plum\Converter\LogConverter::convert()
  */
 public function convertWithOptions()
 {
     $converter = new LogConverter($this->logger, 'notice', 'Log Me');
     $item = ['a' => 'foo', 'b' => 'bar'];
     $this->logger->shouldReceive('log')->with('notice', 'Log Me', $item);
     $converter->convert($item);
 }