summaryrefslogtreecommitdiffstats
path: root/tests/008-rpmdbinfo2.phpt
blob: 940ad61d599449a0dc510dec1d498eb4017bad60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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