BrowscapTest\Generator\DiffGeneratorTest::testRun PHP Метод

testRun() публичный Метод

tests running the generation of a diff
public testRun ( )
    public function testRun()
    {
        $mock = $this->createMock(\Monolog\Logger::class);
        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);
    }