summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_getDefaultProperties_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionClass_getDefaultProperties_001.phpt')
-rw-r--r--ext/reflection/tests/ReflectionClass_getDefaultProperties_001.phpt20
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/reflection/tests/ReflectionClass_getDefaultProperties_001.phpt b/ext/reflection/tests/ReflectionClass_getDefaultProperties_001.phpt
index e19db81188..9ca0ae52f7 100644
--- a/ext/reflection/tests/ReflectionClass_getDefaultProperties_001.phpt
+++ b/ext/reflection/tests/ReflectionClass_getDefaultProperties_001.phpt
@@ -1,5 +1,5 @@
--TEST--
-ReflectionClass::getDefaultProperties(), ReflectionClass::getStaticProperties()
+ReflectionClass::getDefaultProperties(), ReflectionClass::getStaticProperties()
--CREDITS--
Robin Fernandes <robinf@php.net>
Steve Seear <stevseea@php.net>
@@ -11,15 +11,15 @@ class A {
static public $statPubC = "stat pubC in A";
static protected $statProtC = "stat protC in A";
static private $statPrivC = "stat privC in A";
-
+
static public $statPubA = "stat pubA in A";
static protected $statProtA = "stat protA in A";
static private $statPrivA = "stat privA in A";
-
+
public $pubC = "pubC in A";
protected $protC = "protC in A";
private $privC = "privC in A";
-
+
public $pubA = "pubA in A";
protected $protA = "protA in A";
private $privA = "privA in A";
@@ -32,22 +32,22 @@ class B extends A {
static public $statPubB = "stat pubB in B";
static protected $statProtB = "stat protB in B";
- static private $statPrivB = "stat privB in B";
-
+ static private $statPrivB = "stat privB in B";
+
public $pubC = "pubC in B";
protected $protC = "protC in B";
private $privC = "privC in B";
public $pubB = "pubB in B";
protected $protB = "protB in B";
- private $privB = "privB in B";
+ private $privB = "privB in B";
}
class C extends B {
static public $statPubC = "stat pubC in C";
static protected $statProtC = "stat protC in C";
static private $statPrivC = "stat privC in C";
-
+
public $pubC = "pubC in C";
protected $protC = "protC in C";
private $privC = "privC in C";
@@ -60,7 +60,7 @@ class X {
public $pubC = "pubC in X";
protected $protC = "protC in X";
- private $privC = "privC in X";
+ private $privC = "privC in X";
}
$classes = array('A', 'B', 'C', 'X');
@@ -68,7 +68,7 @@ foreach ($classes as $class) {
$rc = new ReflectionClass($class);
echo "\n\n---- Static properties in $class ----\n";
print_r($rc->getStaticProperties());
- echo "\n\n---- Default properties in $class ----\n";
+ echo "\n\n---- Default properties in $class ----\n";
print_r($rc->getDefaultProperties());
}