diff options
Diffstat (limited to 'tests/008-rpmdbinfo2.phpt')
-rw-r--r-- | tests/008-rpmdbinfo2.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/008-rpmdbinfo2.phpt b/tests/008-rpmdbinfo2.phpt new file mode 100644 index 0000000..940ad61 --- /dev/null +++ b/tests/008-rpmdbinfo2.phpt @@ -0,0 +1,16 @@ +--TEST-- +Check for rpmdbinfo function +--SKIPIF-- +<?php if (!extension_loaded("rpminfo")) print "skip"; ?> +--FILE-- +<?php +$a = rpmdbinfo('php*', false, RPM_MATCH_GLOB); +var_dump(count($a) > 1); +$a = rpmdbinfo('^php', false, RPM_MATCH_REGEX); +var_dump(count($a) > 1); +?> +Done +--EXPECTF-- +bool(true) +bool(true) +Done |