public setLogger ( Psr\Log\LoggerInterface $logger ) : |
||
$logger | Psr\Log\LoggerInterface | |
Результат |
public function setLogger(LoggerInterface $logger)
{
$this->logger = $logger;
return $this;
}
/** * tests running the generation of a diff * * @group generator * @group sourcetest */ public function testRun() { $mock = $this->getMock('\\Monolog\\Logger', array(), array(), '', false); self::assertSame($this->object, $this->object->setLogger($mock)); $tmpfile = tempnam(sys_get_temp_dir(), 'browscaptest'); $in = <<<HERE ; comment [test] test=test HERE; file_put_contents($tmpfile, $in); self::assertNull($this->object->run($tmpfile, $tmpfile)); unlink($tmpfile); }