summaryrefslogtreecommitdiffstats
path: root/tests/003-rpminfo.phpt
blob: e5e01ab7782804b142de45cf0c197e92ef1bec6b (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) "1.fc25.remi"
  ["Summary"]=>
  string(5) "Bidon"
  ["Arch"]=>
  string(6) "x86_64"
}
Done