summaryrefslogtreecommitdiffstats
path: root/tests/007-rpmdbinfo.phpt
blob: 6ef5aa126fa3a8b988a6a792314f3e60224e93c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
Check for rpmdbinfo function
--SKIPIF--
<?php if (!extension_loaded("rpminfo")) print "skip"; ?>
--FILE--
<?php 
var_dump(rpmdbinfo('doesntexistsinrpmdb'));
var_dump(rpmdbinfo('bash'));
?>
Done
--EXPECTF--
bool(false)
array(1) {
  [0]=>
  array(4) {
    ["Name"]=>
    string(4) "bash"
    ["Version"]=>
    string(%d) "%s"
    ["Release"]=>
    string(%d) "%s"
    ["Arch"]=>
    string(%d) "%s"
  }
}
Done