summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-11 18:08:53 +0100
committerRemi Collet <remi@remirepo.net>2020-03-11 18:08:53 +0100
commit06a93ae1423434b65592f3a91bbbf13fccf475b8 (patch)
treea314f804a643cc9ae1d08d8ad3a03b2bc604fc59 /tests
parent9d455172490b3c768eda092e0898b666e17a23d2 (diff)
revert previous and add rpmdbsearch function instead
Diffstat (limited to 'tests')
-rw-r--r--tests/008-rpmdbsearch.phpt (renamed from tests/008-rpmdbinfo2.phpt)10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/008-rpmdbinfo2.phpt b/tests/008-rpmdbsearch.phpt
index 940ad61..09800a6 100644
--- a/tests/008-rpmdbinfo2.phpt
+++ b/tests/008-rpmdbsearch.phpt
@@ -4,13 +4,19 @@ Check for rpmdbinfo function
<?php if (!extension_loaded("rpminfo")) print "skip"; ?>
--FILE--
<?php
-$a = rpmdbinfo('php*', false, RPM_MATCH_GLOB);
+$a = rpmdbsearch('php*', RPM_TAG_NAME , RPM_MATCH_GLOB);
var_dump(count($a) > 1);
-$a = rpmdbinfo('^php', false, RPM_MATCH_REGEX);
+
+$a = rpmdbsearch('^php', RPM_TAG_NAME, RPM_MATCH_REGEX);
var_dump(count($a) > 1);
+
+$a = rpmdbsearch(PHP_BINARY, RPM_TAG_INSTFILENAMES);
+var_dump(count($a) == 1);
+
?>
Done
--EXPECTF--
bool(true)
bool(true)
+bool(true)
Done