summaryrefslogtreecommitdiff
path: root/Zend/tests/bug48409.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug48409.phpt')
-rw-r--r--Zend/tests/bug48409.phpt72
1 files changed, 36 insertions, 36 deletions
diff --git a/Zend/tests/bug48409.phpt b/Zend/tests/bug48409.phpt
index 7ba99cdbf4..d05f5c42f4 100644
--- a/Zend/tests/bug48409.phpt
+++ b/Zend/tests/bug48409.phpt
@@ -7,59 +7,59 @@ class ABCException extends Exception {}
class BBB
{
- public function xyz($d, $x)
- {
- if ($x == 34) {
- throw new ABCException;
- }
- return array('foo' => 'xyz');
- }
+ public function xyz($d, $x)
+ {
+ if ($x == 34) {
+ throw new ABCException;
+ }
+ return array('foo' => 'xyz');
+ }
}
class CCC
{
- public function process($p)
- {
- return $p;
- }
+ public function process($p)
+ {
+ return $p;
+ }
}
class AAA
{
- public function func()
- {
- $b = new BBB;
- $c = new CCC;
- $i = 34;
- $item = array('foo' => 'bar');
- try {
- $c->process($b->xyz($item['foo'], $i));
- }
- catch(ABCException $e) {
- $b->xyz($item['foo'], $i);
- }
- } // end func();
+ public function func()
+ {
+ $b = new BBB;
+ $c = new CCC;
+ $i = 34;
+ $item = array('foo' => 'bar');
+ try {
+ $c->process($b->xyz($item['foo'], $i));
+ }
+ catch(ABCException $e) {
+ $b->xyz($item['foo'], $i);
+ }
+ } // end func();
}
class Runner
{
- public function run($x)
- {
- try {
- $x->func();
- }
- catch(ABCException $e) {
- throw new Exception;
- }
- }
+ public function run($x)
+ {
+ try {
+ $x->func();
+ }
+ catch(ABCException $e) {
+ throw new Exception;
+ }
+ }
}
try {
- $runner = new Runner;
- $runner->run(new AAA);
+ $runner = new Runner;
+ $runner->run(new AAA);
}
catch(Exception $e) {
- die('Exception thrown');
+ die('Exception thrown');
}
?>