summaryrefslogtreecommitdiffstats
path: root/tests/008-rpmdbsearch.phpt
blob: 09800a65980b11aa5f57fbd4fa69131e5a11c4ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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