Viewing File: /opt/alt/tests/alt-php81-pecl-xdiff_2.1.1-1.el8/tests/024.phpt

--TEST--
xdiff_string_diff() with context = 1
--SKIPIF--
<?php if (!extension_loaded("xdiff")) print "skip"; ?>
--FILE--
<?php 
$a = file_get_contents(__DIR__ . '/lorem1.txt');
$b = file_get_contents(__DIR__ . '/lorem2.txt');
$patch = xdiff_string_diff($a, $b, 1);
echo strcmp($patch, file_get_contents(__DIR__ . '/context1.patch'));
?>
--EXPECT--
0
Back to Directory File Manager
<