summaryrefslogtreecommitdiffstats
path: root/tests/010-rpmvercmp_error7.phpt
blob: c9b38750dccfd26b6cdede1bf00ddcda268d8f64 (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
--TEST--
Check for rpmvercmp function error
--SKIPIF--
<?php
if (!extension_loaded("rpminfo")) print "skip";
if (PHP_VERSION_ID >= 80000) print "skip only for PHP 7";
?>
--FILE--
<?php
var_dump(rpmvercmp());
var_dump(rpmvercmp("a"));
var_dump(rpmvercmp("a", "b", "c"));
?>
Done
--EXPECTF--

Warning: rpmvercmp() expects exactly 2 parameters, 0 given in %s
NULL

Warning: rpmvercmp() expects exactly 2 parameters, 1 given in %s
NULL

Warning: rpmvercmp() expects exactly 2 parameters, 3 given in %s
NULL
Done