summaryrefslogtreecommitdiffstats
path: root/tests/003-rpminfo.phpt
blob: c1c5d2acc217d543d3689ab09b0c97814d0cc029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Check for rpminfo function
--SKIPIF--
<?php if (!extension_loaded("rpminfo")) print "skip"; ?>
--FILE--
<?php 
var_dump(rpminfo(__DIR__ . "/bidon.rpm"));
?>
Done
--EXPECTF--
array(5) {
  ["Name"]=>
  string(5) "bidon"
  ["Version"]=>
  string(1) "1"
  ["Release"]=>
  string(11) "2.fc37.remi"
  ["Summary"]=>
  string(5) "Bidon"
  ["Arch"]=>
  string(6) "x86_64"
}
Done