public function testSetOption()
    {
        $internal = $this->getMock('Knp\\Snappy\\Image');
        $internal->expects($this->at(0))->method('setOption')->with($this->equalTo('foo'), $this->equalTo('bar'));
        $internal->expects($this->at(1))->method('setOption')->with($this->equalTo('foo'), $this->equalTo(array('bar' => 'baz')));
        $logger = $this->getMock('Psr\\Log\\LoggerInterface');
        $logger->expects($this->at(0))->method('debug')->with($this->equalTo('Set option foo = \'bar\'.'));
        $logger->expects($this->at(1))->method('debug')->with($this->equalTo('Set option foo = array (
  \'bar\' => \'baz\',
).'));
        $generator = new LoggableGenerator($internal, $logger);
        $generator->setOption('foo', 'bar');
        $generator->setOption('foo', array('bar' => 'baz'));
    }