markTestSkipped('"DOMDocument" required'); return; } $from = "
Row 1
Row 2 Row 2
Row 3 Row 3
"; $to = "
Row 1
Row 2 Row 2
"; $expected = "" . $to . "" . "" . $from . ""; $compare = Diff::compareHTML($from, $to); // Very hard to debug this way, wouldn't need to do this if PHP had an *actual* DOM parsing lib, // and not just the poor excuse that is DOMDocument $compare = preg_replace('/[\s\t\n\r]*/', '', $compare); $expected = preg_replace('/[\s\t\n\r]*/', '', $expected); $this->assertEquals($compare, $expected); } }