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

--TEST--
xdiff_file_patch()
--SKIPIF--
<?php if (!extension_loaded("xdiff")) print "skip"; ?>
--FILE--
<?php
xdiff_file_patch(__DIR__ . '/file.1', __DIR__ . '/file_test.diff', __DIR__ . '/file.p');
$a = file_get_contents(__DIR__ . '/file.2');
$b = file_get_contents(__DIR__ . '/file.p');
var_dump(strcmp($a, $b));
unlink(__DIR__ . '/file.p');
?>
--EXPECT--
int(0)
Back to Directory File Manager
<