0byt3m1n1
Path:
/
data
/
applications
/
aps
/
owl
/
1.0-0
/
standard
/
htdocs
/
lib
/
Text
/
tests
/
[
Home
]
File: unified.php
--TEST-- Text_Diff: Unified renderer --FILE-- <?php include_once '../../Text/Diff.php'; include_once '../../Text/Diff/Renderer.php'; include_once '../../Text/Diff/Renderer/unified.php'; $lines1 = file(dirname(__FILE__) . '/1.txt'); $lines2 = file(dirname(__FILE__) . '/2.txt'); $diff = &new Text_Diff($lines1, $lines2); $renderer = &new Text_Diff_Renderer_unified(); print("<pre>"); print_r($diff); echo $renderer->render($diff); print("</pre>"); ?> --EXPECT-- @@ -1,3 +1,3 @@ This line is the same. -This line is different in 1.txt +This line is different in 2.txt This line is the same.