DiffMatchPatch\DiffMatchPatchTest::testPatchMake PHP Method

testPatchMake() public method

public testPatchMake ( )
    public function testPatchMake()
    {
        $text1 = "The quick brown fox jumps over the lazy dog.";
        $text2 = "That quick brown fox jumped over a lazy dog.";
        $expected = "@@ -1,8 +1,7 @@\n Th\n-at\n+e\n  qui\n@@ -21,17 +21,18 @@\n jump\n-ed\n+s\n  over \n-a\n+the\n  laz\n";
        $patches = $this->dmp->patch_make($text2, $text1);
        $this->assertEquals($expected, $this->dmp->patch_toText($patches));
    }