DiffMatchPatch\DiffTmpTest::testTmp PHP Method

testTmp() public method

public testTmp ( )
    public function testTmp()
    {
        //        function rebuildtexts($diffs) {
        //            // Construct the two texts which made up the diff originally.
        //            $text1 = "";
        //            $text2 = "";
        //            foreach ($diffs as $change) {
        //                if ($change[0] != Diff::INSERT) {
        //                    $text1 .= $change[1];
        //                }
        //                if ($change[0] != Diff::DELETE) {
        //                    $text2 .= $change[1];
        //                }
        //            }
        //            return array($text1, $text2);
        //        }
        //        // Overlap line-mode.
        //        $a = str_repeat("1234567890\n", 13);
        //        $b = "abcdefghij\n1234567890\n1234567890\n1234567890\nabcdefghij\n1234567890\n1234567890\n1234567890\nabcdefghij\n1234567890\n1234567890\n1234567890\nabcdefghij\n";
        //        $this->assertEquals(
        //            rebuildtexts($this->d->main($a, $b, false)->getChanges()),
        //            rebuildtexts($this->d->main($a, $b, true)->getChanges())
        //        );
    }
DiffTmpTest