applyFileStdin() public static method

public static applyFileStdin ( $originalFile, $diff, &$output, $level )
Beispiel #1
0
    public function test()
    {
        $diff = <<<'PATCH'
--- tests/a.txt	2014-10-11 23:04:39.000000000 +0800
+++ tests/b.txt	2014-10-11 23:04:50.000000000 +0800
@@ -1 +1 @@
-aaa
+bbb

PATCH;
        file_put_contents('tests/a.txt', "aaa\n");
        $this->assertSame(0, PatchUtils::applyFileStdin('tests/a.txt', $diff, $output));
        unlink('tests/a.txt');
    }