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.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/007-rpmdbinfo.phpt b/tests/007-rpmdbinfo.phpt
index 6fe3116..c568dd9 100644
--- a/tests/007-rpmdbinfo.phpt
+++ b/tests/007-rpmdbinfo.phpt
@@ -6,6 +6,14 @@ Check for rpmdbinfo function
<?php
var_dump(rpmdbinfo('doesntexistsinrpmdb'));
var_dump(rpmdbinfo('bash'));
+
+$k = rpmdbinfo('kernel');
+var_dump(count($k) > 0); // multiple kernels
+$n = $k[0]['Name'] . '-' . $k[0]['Version'] . '-' . $k[0]['Release'];
+
+$k = rpmdbinfo($n); // single kernel with NEVR
+var_dump(count($k) ==1);
+
?>
Done
--EXPECTF--
@@ -25,4 +33,6 @@ array(1) {
string(%d) "%s"
}
}
+bool(true)
+bool(true)
Done