summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/014-stream.phpt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/014-stream.phpt b/tests/014-stream.phpt
index 95f815e..69b881e 100644
--- a/tests/014-stream.phpt
+++ b/tests/014-stream.phpt
@@ -43,6 +43,11 @@ 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
+
+echo "+ symlink\n";
+var_dump(rpmgetsymlink(__DIR__ . "/bidon.rpm", "missing"));
+var_dump(rpmgetsymlink(__DIR__ . "/bidon.rpm", "/etc/foo.conf")); // not a symlink
+var_dump(rpmgetsymlink(__DIR__ . "/bidon.rpm", "/etc/toto.conf")); // symlink
?>
Done
--EXPECTF--
@@ -85,4 +90,8 @@ string(7) "content"
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)
++ symlink
+NULL
+string(0) ""
+string(8) "foo.conf"
Done