diff options
author | Remi Collet <remi@remirepo.net> | 2018-01-30 17:36:04 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-01-30 17:36:04 +0100 |
commit | 47013783578b41a000b755e2726f057ecd4cd1cb (patch) | |
tree | 6a56d22ecf1e798c7889a6fc15eaf6bc005941e7 /tests/003-rpminfo.phpt | |
parent | cf809b71d4344aeb93378a577abc1ea18a3df323 (diff) |
add option to retrieve error message instead of raising a warning
Diffstat (limited to 'tests/003-rpminfo.phpt')
-rw-r--r-- | tests/003-rpminfo.phpt | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/003-rpminfo.phpt b/tests/003-rpminfo.phpt index f7cee82..f878c7f 100644 --- a/tests/003-rpminfo.phpt +++ b/tests/003-rpminfo.phpt @@ -5,9 +5,6 @@ Check for rpminfo function --FILE-- <?php var_dump(rpminfo(__DIR__ . "/bidon.rpm")); -// Errors -var_dump(rpminfo(__DIR__ . "/missing.rpm")); -var_dump(rpminfo(__FILE__)); ?> Done --EXPECTF-- @@ -21,10 +18,4 @@ array(4) { ["Arch"]=> string(6) "x86_64" } - -Warning: rpminfo(): Can't open '%s/tests/missing.rpm': No such file or directory in %s/003-rpminfo.php on line %d -bool(false) - -Warning: rpminfo(): Can't read '%s/tests/003-rpminfo.php': Argument is not a RPM file in %s/003-rpminfo.php on line %d -bool(false) Done |