summaryrefslogtreecommitdiffstats
path: root/tests/007-rpmdbinfo.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/007-rpmdbinfo.phpt')
-rw-r--r--tests/007-rpmdbinfo.phpt26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/007-rpmdbinfo.phpt b/tests/007-rpmdbinfo.phpt
index 4d142c7..4a977d1 100644
--- a/tests/007-rpmdbinfo.phpt
+++ b/tests/007-rpmdbinfo.phpt
@@ -6,6 +6,10 @@ Check for rpmdbinfo function on Name
<?php
var_dump(rpmdbinfo('doesntexistsinrpmdb'));
var_dump(rpmdbinfo('bash'));
+var_dump(rpmaddtag(RPMTAG_INSTALLTIME));
+var_dump(rpmaddtag(RPMTAG_BUILDTIME));
+var_dump(rpmaddtag(RPMTAG_INSTALLTIME));
+var_dump(rpmdbinfo('bash'));
?>
Done
--EXPECTF--
@@ -25,4 +29,26 @@ array(1) {
string(%d) "%s"
}
}
+bool(true)
+bool(true)
+bool(false)
+array(1) {
+ [0]=>
+ array(7) {
+ ["Name"]=>
+ string(4) "bash"
+ ["Version"]=>
+ string(%d) "%s"
+ ["Release"]=>
+ string(%d) "%s"
+ ["Summary"]=>
+ string(26) "The GNU Bourne Again shell"
+ ["Buildtime"]=>
+ int(%d)
+ ["Installtime"]=>
+ int(%d)
+ ["Arch"]=>
+ string(%d) "%s"
+ }
+}
Done