DiffMatchPatch\DiffTest::testText PHP Method

testText() public method

public testText ( )
    public function testText()
    {
        // Compute the source and destination texts.
        $this->d->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, " lazy")));
        $this->assertEquals("jumps over the lazy", $this->d->text1());
        $this->assertEquals("jumped over a lazy", $this->d->text2());
    }