summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-13 17:12:53 +0100
committerRemi Collet <remi@remirepo.net>2020-03-13 17:12:53 +0100
commitb2b3568932aa8c70981b9230f1af216938191944 (patch)
tree59e303bedab5fe755fc17ef2b315a8b42bff1db3 /tests
parent81cb671ef1b07c563ed6be2776d5174107e1257e (diff)
add type hinting in reflection
return NULL instead of FALSE on failure
Diffstat (limited to 'tests')
-rw-r--r--tests/006-rpminfo-errors.phpt8
-rw-r--r--tests/007-rpmdbinfo.phpt2
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/006-rpminfo-errors.phpt b/tests/006-rpminfo-errors.phpt
index edacbdb..5d205d7 100644
--- a/tests/006-rpminfo-errors.phpt
+++ b/tests/006-rpminfo-errors.phpt
@@ -21,15 +21,15 @@ Done
+ PHP Warnings
Warning: rpminfo(): Can't open '%s/tests/missing.rpm': No such file or directory in %s on line %d
-bool(false)
+NULL
Warning: rpminfo(): Can't read '%s/tests/006-rpminfo-errors.php': Argument is not a RPM file in %s on line %d
-bool(false)
+NULL
+ PHP Warnings
-bool(false)
+NULL
string(%d) "Can't open '%s/tests/missing.rpm': No such file or directory"
-bool(false)
+NULL
string(%d) "Can't read '%s/tests/006-rpminfo-errors.php': Argument is not a RPM file"
bool(true)
NULL
diff --git a/tests/007-rpmdbinfo.phpt b/tests/007-rpmdbinfo.phpt
index e931c94..4d142c7 100644
--- a/tests/007-rpmdbinfo.phpt
+++ b/tests/007-rpmdbinfo.phpt
@@ -9,7 +9,7 @@ var_dump(rpmdbinfo('bash'));
?>
Done
--EXPECTF--
-bool(false)
+NULL
array(1) {
[0]=>
array(5) {