diff options
author | Remi Collet <remi@remirepo.net> | 2020-03-11 18:08:53 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-03-11 18:08:53 +0100 |
commit | 06a93ae1423434b65592f3a91bbbf13fccf475b8 (patch) | |
tree | a314f804a643cc9ae1d08d8ad3a03b2bc604fc59 /tests/008-rpmdbsearch.phpt | |
parent | 9d455172490b3c768eda092e0898b666e17a23d2 (diff) |
revert previous and add rpmdbsearch function instead
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 |