summaryrefslogtreecommitdiff
path: root/tests/lang/035.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/035.phpt')
-rw-r--r--tests/lang/035.phpt10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lang/035.phpt b/tests/lang/035.phpt
index a5e3a7f4cc..f386db0e03 100644
--- a/tests/lang/035.phpt
+++ b/tests/lang/035.phpt
@@ -6,18 +6,18 @@ ZE2: set_exception_handler()
<?php
class MyException extends Exception {
function __construct($_error) {
- $this->error = $_error;
+ $this->error = $_error;
}
-
+
function getException()
{
- return $this->error;
+ return $this->error;
}
}
function ThrowException()
{
- throw new MyException("'This is an exception!'");
+ throw new MyException("'This is an exception!'");
}
@@ -28,7 +28,7 @@ try {
}
try {
- ThrowException();
+ ThrowException();
} catch (MyException $exception) {
print "There was an exception: " . $exception->getException();
print "\n";