DiffMatchPatch\PatchTest::testPatchObj PHP Method

testPatchObj() public method

public testPatchObj ( )
    public function testPatchObj()
    {
        $p = new PatchObject();
        $p->setStart1(20);
        $p->setStart2(21);
        $p->setLength1(18);
        $p->setLength2(17);
        $p->setChanges(array(array(Diff::EQUAL, "jump"), array(Diff::DELETE, "s"), array(Diff::INSERT, "ed"), array(Diff::EQUAL, " over "), array(Diff::DELETE, "the"), array(Diff::INSERT, "a"), array(Diff::EQUAL, "\nlaz")));
        $this->assertEquals("@@ -21,18 +22,17 @@\n jump\n-s\n+ed\n  over \n-the\n+a\n %0Alaz\n", (string) $p);
    }