diff options
Diffstat (limited to 'tests/008-rpmdbsearch.phpt')
-rw-r--r-- | tests/008-rpmdbsearch.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/008-rpmdbsearch.phpt b/tests/008-rpmdbsearch.phpt new file mode 100644 index 0000000..09800a6 --- /dev/null +++ b/tests/008-rpmdbsearch.phpt @@ -0,0 +1,22 @@ +--TEST-- +Check for rpmdbinfo function +--SKIPIF-- +<?php if (!extension_loaded("rpminfo")) print "skip"; ?> +--FILE-- +<?php +$a = rpmdbsearch('php*', RPM_TAG_NAME , RPM_MATCH_GLOB); +var_dump(count($a) > 1); + +$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 |