diff options
author | Remi Collet <remi@remirepo.net> | 2023-10-13 14:16:29 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-10-13 14:16:29 +0200 |
commit | 6bf51c5b1d4250b28d8fd09e43504b482f6d8ed2 (patch) | |
tree | df7b8b3385d189c796a20f1c5c56eb1151b50358 /tests/014-stream.phpt | |
parent | 4e77dbaaa852b1e60f119e0dc1c175c7f333d925 (diff) |
cleanup
Diffstat (limited to 'tests/014-stream.phpt')
-rw-r--r-- | tests/014-stream.phpt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/014-stream.phpt b/tests/014-stream.phpt index f084326..37b41dd 100644 --- a/tests/014-stream.phpt +++ b/tests/014-stream.phpt @@ -9,6 +9,7 @@ if (version_compare(RPMVERSION, '4.13', 'lt')) print("skip librpm is older than <?php $d = "rpm://" . __DIR__ . "/bidon.rpm#/usr/share/doc/bidon"; $n = "rpm://" . __DIR__ . "/bidon.rpm#/usr/share/doc/bidon/README"; +$x = "rpm://" . __DIR__ . "/bidon.rpm#/usr/share/doc/bidon/MISSING"; $foo = "rpm://" . __DIR__ . "/bidon.rpm#/etc/foo.conf"; $bar = "rpm://" . __DIR__ . "/bidon.rpm#/etc/bar.conf"; @@ -34,11 +35,10 @@ var_dump(feof($f)); fclose($f); echo "+ stream\n"; -var_dump(trim(file_get_contents($n))); -var_dump(trim(file_get_contents($foo))); -var_dump(trim(file_get_contents($bar))); - -var_dump(file_get_contents(str_replace('README', 'TODO', $n))); +var_dump(trim(file_get_contents($n))); // Existing file +var_dump(trim(file_get_contents($foo))); // Hardlink with content +var_dump(trim(file_get_contents($bar))); // hardlink without content +var_dump(file_get_contents($x)); // Missing file ?> Done --EXPECTF-- @@ -70,6 +70,6 @@ string(29) "Fri Oct 13 12:24:27 CEST 2023" string(7) "content" string(7) "content" -Warning: file_get_contents(%s/bidon.rpm#/usr/share/doc/bidon/TODO): Failed to open stream: operation failed in %s on line %d +Warning: file_get_contents(%s/bidon.rpm#/usr/share/doc/bidon/MISSING): Failed to open stream: operation failed in %s on line %d bool(false) Done |