summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/002.phpt')
-rw-r--r--ext/reflection/tests/002.phpt20
1 files changed, 9 insertions, 11 deletions
diff --git a/ext/reflection/tests/002.phpt b/ext/reflection/tests/002.phpt
index d0fcb32bea..b10013d2a9 100644
--- a/ext/reflection/tests/002.phpt
+++ b/ext/reflection/tests/002.phpt
@@ -5,13 +5,13 @@ Reflection properties are read only
class ReflectionMethodEx extends ReflectionMethod
{
- public $foo = "xyz";
+ public $foo = "xyz";
- function __construct($c,$m)
- {
- echo __METHOD__ . "\n";
- parent::__construct($c,$m);
- }
+ function __construct($c,$m)
+ {
+ echo __METHOD__ . "\n";
+ parent::__construct($c,$m);
+ }
}
$r = new ReflectionMethodEx('ReflectionMethodEx','getName');
@@ -23,11 +23,11 @@ var_dump($r->foo);
try
{
- $r->class = 'bullshit';
+ $r->class = 'bullshit';
}
catch(ReflectionException $e)
{
- echo $e->getMessage() . "\n";
+ echo $e->getMessage() . "\n";
}
try
{
@@ -35,7 +35,7 @@ $r->name = 'bullshit';
}
catch(ReflectionException $e)
{
- echo $e->getMessage() . "\n";
+ echo $e->getMessage() . "\n";
}
$r->foo = 'bar';
@@ -47,7 +47,6 @@ var_dump($r->foo);
var_dump($r->bar);
?>
-===DONE===
--EXPECT--
ReflectionMethodEx::__construct
string(26) "ReflectionFunctionAbstract"
@@ -60,4 +59,3 @@ string(26) "ReflectionFunctionAbstract"
string(7) "getName"
string(3) "bar"
string(3) "baz"
-===DONE===