summaryrefslogtreecommitdiff
path: root/Zend/tests/bug50383.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
commitf8d795820e780a6322e054c26c581570613c14f0 (patch)
tree99d3ae01ce564752807341c5743863b4c92513f8 /Zend/tests/bug50383.phpt
parentd2cb200e10ada6fa44c54a29292bb4665728fff0 (diff)
downloadphp-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz
Reindent phpt files
Diffstat (limited to 'Zend/tests/bug50383.phpt')
-rw-r--r--Zend/tests/bug50383.phpt30
1 files changed, 15 insertions, 15 deletions
diff --git a/Zend/tests/bug50383.phpt b/Zend/tests/bug50383.phpt
index de81facd05..2f72ea51f8 100644
--- a/Zend/tests/bug50383.phpt
+++ b/Zend/tests/bug50383.phpt
@@ -4,34 +4,34 @@ Bug #50383 (Exceptions thrown in __call / __callStatic do not include file and l
<?php
class myClass {
- public static function __callStatic($method, $args) {
- throw new Exception("Missing static method '$method'\n");
- }
- public function __call($method, $args) {
- throw new Exception("Missing method '$method'\n");
- }
+ public static function __callStatic($method, $args) {
+ throw new Exception("Missing static method '$method'\n");
+ }
+ public function __call($method, $args) {
+ throw new Exception("Missing method '$method'\n");
+ }
}
function thrower() {
- myClass::ThrowException();
+ myClass::ThrowException();
}
function thrower2() {
- $x = new myClass;
- $x->foo();
+ $x = new myClass;
+ $x->foo();
}
try {
- thrower();
+ thrower();
} catch(Exception $e) {
- print $e->getMessage();
- print_r($e->getTrace());
+ print $e->getMessage();
+ print_r($e->getTrace());
}
try {
- thrower2();
+ thrower2();
} catch (Exception $e) {
- print $e->getMessage();
- print_r($e->getTrace());
+ print $e->getMessage();
+ print_r($e->getTrace());
}
?>