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

Entry point for generating builds for a specified version
public run ( string $leftFilename, string $rightFilename )
$leftFilename string
$rightFilename string
Пример #1
0
    /**
     * 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);
    }