summaryrefslogtreecommitdiffstats
path: root/tests/008-rpmdbsearch.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/008-rpmdbsearch.phpt')
-rw-r--r--tests/008-rpmdbsearch.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/008-rpmdbsearch.phpt b/tests/008-rpmdbsearch.phpt
index d22a4bd..f348b92 100644
--- a/tests/008-rpmdbsearch.phpt
+++ b/tests/008-rpmdbsearch.phpt
@@ -26,6 +26,13 @@ var_dump($a[0]['Name'] == $phprpm);
echo "Hdrid\n";
$a = rpmdbsearch($p[0]['Sha1header'], RPMTAG_HDRID);
var_dump($a[0]['Name'] == $phprpm);
+var_dump(count($a[0]) < 10);
+
+echo "Hdrid (full)\n";
+$a = rpmdbsearch($p[0]['Sha1header'], RPMTAG_HDRID, -1, true);
+var_dump($a[0]['Name'] == $phprpm);
+var_dump($a[0]['Sha1header'] == $p[0]['Sha1header']);
+var_dump(count($a[0]) > 20);
echo "Installtid\n";
$a = rpmdbsearch($p[0]['Installtid'], RPMTAG_INSTALLTID);
@@ -48,6 +55,11 @@ Pkgid
bool(true)
Hdrid
bool(true)
+bool(true)
+Hdrid (full)
+bool(true)
+bool(true)
+bool(true)
Installtid
bool(true)
Version