public function testOutput() { $internal = $this->getMock('Knp\\Snappy\\GeneratorInterface'); $internal->expects($this->once())->method('getOutput')->with($this->equalTo('the_input_file'), $this->equalTo(array('foo' => 'bar'))); $logger = $this->getMock('Symfony\\Component\\HttpKernel\\Log\\LoggerInterface'); $logger->expects($this->once())->method('debug')->with($this->equalTo('Output from file (the_input_file).')); $generator = new LoggableGenerator($internal, $logger); $generator->getOutput('the_input_file', array('foo' => 'bar'), true); }