// SYSTEM PANEL //
[ROOT]
/
opt
/
alt
/
tests
/
alt-php81-pecl-xdiff_2.1.1-1.el8
/
tests
[ PARENT ]
EDIT :: 029.phpt
--TEST-- xdiff_string_patch() with context5.patch --SKIPIF-- <?php if (!extension_loaded("xdiff")) print "skip"; ?> --FILE-- <?php $a = file_get_contents(__DIR__ . '/lorem1.txt'); $b = file_get_contents(__DIR__ . '/context5.patch'); $c = xdiff_string_patch($a, $b); $d = file_get_contents(__DIR__ . '/lorem2.txt'); echo strcmp($c, $d); ?> --EXPECT-- 0
SAVE
CANCEL