summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorTimm Friebe <thekid@thekid.de>2014-07-06 17:07:41 +0200
committerTimm Friebe <thekid@thekid.de>2014-07-06 17:07:41 +0200
commit9b6062071e5b2b226f23f7138472055a909f4800 (patch)
treec9006fc91c77160150e4aada1912a7a1e52574fe /Zend/tests
parenta1554ca6343598c38e4fb4fbcc46419ce0bdf058 (diff)
downloadphp-git-9b6062071e5b2b226f23f7138472055a909f4800.tar.gz
Adjust expected fatal error message
Now also includes "on [TYPE]" after merge from master
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/methods-on-non-objects-args-catch.phpt2
-rw-r--r--Zend/tests/methods-on-non-objects-catch.phpt2
-rw-r--r--Zend/tests/methods-on-non-objects-chain.phpt6
-rw-r--r--Zend/tests/methods-on-non-objects-eval.phpt2
-rw-r--r--Zend/tests/methods-on-non-objects-throw.phpt2
-rw-r--r--Zend/tests/methods-on-non-objects-usort.phpt14
-rw-r--r--Zend/tests/methods-on-non-objects.phpt2
7 files changed, 15 insertions, 15 deletions
diff --git a/Zend/tests/methods-on-non-objects-args-catch.phpt b/Zend/tests/methods-on-non-objects-args-catch.phpt
index 2dd54cb65d..853d2d5602 100644
--- a/Zend/tests/methods-on-non-objects-args-catch.phpt
+++ b/Zend/tests/methods-on-non-objects-args-catch.phpt
@@ -13,6 +13,6 @@ echo "Alive\n";
--EXPECTF--
int(4096)
-string(%d) "Call to a member function method() on a non-object"
+string(%d) "Call to a member function method() on null"
NULL
Alive
diff --git a/Zend/tests/methods-on-non-objects-catch.phpt b/Zend/tests/methods-on-non-objects-catch.phpt
index 30a9c774cc..bbfadac107 100644
--- a/Zend/tests/methods-on-non-objects-catch.phpt
+++ b/Zend/tests/methods-on-non-objects-catch.phpt
@@ -13,6 +13,6 @@ echo "Alive\n";
--EXPECTF--
int(4096)
-string(%d) "Call to a member function method() on a non-object"
+string(%d) "Call to a member function method() on null"
NULL
Alive
diff --git a/Zend/tests/methods-on-non-objects-chain.phpt b/Zend/tests/methods-on-non-objects-chain.phpt
index 0f299469e2..30da254cd5 100644
--- a/Zend/tests/methods-on-non-objects-chain.phpt
+++ b/Zend/tests/methods-on-non-objects-chain.phpt
@@ -13,10 +13,10 @@ echo "Alive\n";
--EXPECTF--
int(4096)
-string(%d) "Call to a member function method() on a non-object"
+string(%d) "Call to a member function method() on null"
int(4096)
-string(%d) "Call to a member function chained() on a non-object"
+string(%d) "Call to a member function chained() on null"
int(4096)
-string(%d) "Call to a member function invocations() on a non-object"
+string(%d) "Call to a member function invocations() on null"
NULL
Alive
diff --git a/Zend/tests/methods-on-non-objects-eval.phpt b/Zend/tests/methods-on-non-objects-eval.phpt
index c961ed385f..8ee494c434 100644
--- a/Zend/tests/methods-on-non-objects-eval.phpt
+++ b/Zend/tests/methods-on-non-objects-eval.phpt
@@ -13,6 +13,6 @@ echo "Alive\n";
--EXPECTF--
int(4096)
-string(%d) "Call to a member function method() on a non-object"
+string(%d) "Call to a member function method() on null"
NULL
Alive
diff --git a/Zend/tests/methods-on-non-objects-throw.phpt b/Zend/tests/methods-on-non-objects-throw.phpt
index ac27ac3f88..874f57cb24 100644
--- a/Zend/tests/methods-on-non-objects-throw.phpt
+++ b/Zend/tests/methods-on-non-objects-throw.phpt
@@ -25,5 +25,5 @@ echo "Alive\n";
--EXPECTF--
Calling...
Raising...
-Caught expected Call to a member function method() on a non-object!
+Caught expected Call to a member function method() on null!
Alive
diff --git a/Zend/tests/methods-on-non-objects-usort.phpt b/Zend/tests/methods-on-non-objects-usort.phpt
index df702d3a9a..760d481b27 100644
--- a/Zend/tests/methods-on-non-objects-usort.phpt
+++ b/Zend/tests/methods-on-non-objects-usort.phpt
@@ -1,5 +1,5 @@
--TEST--
-usort() in combination with "Call to a member function method() on a non-object"
+usort() in combination with "Call to a member function method() on null"
--FILE--
<?php
set_error_handler(function($code, $message) {
@@ -16,17 +16,17 @@ echo "Alive\n";
?>
--EXPECTF--
int(4096)
-string(51) "Call to a member function compare() on a non-object"
+string(43) "Call to a member function compare() on null"
int(4096)
-string(51) "Call to a member function compare() on a non-object"
+string(43) "Call to a member function compare() on null"
int(4096)
-string(51) "Call to a member function compare() on a non-object"
+string(43) "Call to a member function compare() on null"
int(4096)
-string(51) "Call to a member function compare() on a non-object"
+string(43) "Call to a member function compare() on null"
int(4096)
-string(51) "Call to a member function compare() on a non-object"
+string(43) "Call to a member function compare() on null"
int(4096)
-string(51) "Call to a member function compare() on a non-object"
+string(43) "Call to a member function compare() on null"
array(5) {
[0]=>
int(-1)
diff --git a/Zend/tests/methods-on-non-objects.phpt b/Zend/tests/methods-on-non-objects.phpt
index cc426374c8..01031b8b1d 100644
--- a/Zend/tests/methods-on-non-objects.phpt
+++ b/Zend/tests/methods-on-non-objects.phpt
@@ -9,4 +9,4 @@ echo "Should not get here!\n";
?>
--EXPECTF--
-Catchable fatal error: Call to a member function method() on a non-object in %s on line %d
+Catchable fatal error: Call to a member function method() on null in %s on line %d