diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/014-stream.phpt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/014-stream.phpt b/tests/014-stream.phpt index 46d6b66..f084326 100644 --- a/tests/014-stream.phpt +++ b/tests/014-stream.phpt @@ -9,6 +9,8 @@ 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"; +$foo = "rpm://" . __DIR__ . "/bidon.rpm#/etc/foo.conf"; +$bar = "rpm://" . __DIR__ . "/bidon.rpm#/etc/bar.conf"; echo "+ wrapper\n"; var_dump(in_array('rpm', stream_get_wrappers())); @@ -33,6 +35,8 @@ 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))); ?> @@ -63,6 +67,8 @@ string(18) "12:24:27 CEST 2023" bool(true) + stream 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 bool(false) |