summaryrefslogtreecommitdiff
path: root/Zend/tests/bug26166.phpt
diff options
context:
space:
mode:
authorAaron Piotrowski <aaron@trowski.com>2015-05-16 16:49:14 -0500
committerAaron Piotrowski <aaron@trowski.com>2015-05-16 16:49:14 -0500
commit64b167d201e567ec213b5aa37c66536621835331 (patch)
tree272d6f3951625ef7bc82eba08bad64aef9b883d2 /Zend/tests/bug26166.phpt
parentd042d0880796cfe99262bb6fa44225e984c63ace (diff)
downloadphp-git-64b167d201e567ec213b5aa37c66536621835331.tar.gz
Updated tests to reflect exception class changes.
Diffstat (limited to 'Zend/tests/bug26166.phpt')
-rw-r--r--Zend/tests/bug26166.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/Zend/tests/bug26166.phpt b/Zend/tests/bug26166.phpt
index 60624ed98e..9e31efa442 100644
--- a/Zend/tests/bug26166.phpt
+++ b/Zend/tests/bug26166.phpt
@@ -37,25 +37,25 @@ function my_error_handler($errno, $errstr, $errfile, $errline) {
set_error_handler('my_error_handler');
-class None
+class NoneTest
{
function __toString() {
}
}
-$o = new None;
+$o = new NoneTest;
echo $o;
echo "===THROW===\n";
-class Error
+class ErrorTest
{
function __toString() {
throw new Exception("This is an error!");
}
}
-$o = new Error;
+$o = new ErrorTest;
try {
echo $o;
}
@@ -68,7 +68,7 @@ catch (Exception $e) {
--EXPECTF--
Hello World!
===NONE===
-string(52) "Method None::__toString() must return a string value"
+string(56) "Method NoneTest::__toString() must return a string value"
===THROW===
-Fatal error: Method Error::__toString() must not throw an exception in %sbug26166.php on line %d
+Fatal error: Method ErrorTest::__toString() must not throw an exception in %sbug26166.php on line %d