diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-09-16 14:16:42 -0300 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-10-14 12:07:20 -0300 |
commit | 9c144e0d8217d1ef7a83c2498214308b21af749f (patch) | |
tree | d977ba0d8601de477c52f62accf02c120ef06253 /ext/reflection/tests | |
parent | b419732ddb0673dc5b15a67ee4bc7f06dd90d7d0 (diff) | |
download | php-git-9c144e0d8217d1ef7a83c2498214308b21af749f.tar.gz |
Trim trailing whitespace in tests
Diffstat (limited to 'ext/reflection/tests')
101 files changed, 210 insertions, 210 deletions
diff --git a/ext/reflection/tests/002.phpt b/ext/reflection/tests/002.phpt index 3a51990cf6..d0fcb32bea 100644 --- a/ext/reflection/tests/002.phpt +++ b/ext/reflection/tests/002.phpt @@ -6,7 +6,7 @@ Reflection properties are read only class ReflectionMethodEx extends ReflectionMethod { public $foo = "xyz"; - + function __construct($c,$m) { echo __METHOD__ . "\n"; diff --git a/ext/reflection/tests/006.phpt b/ext/reflection/tests/006.phpt index 89c438765a..ab22f5c5c9 100644 --- a/ext/reflection/tests/006.phpt +++ b/ext/reflection/tests/006.phpt @@ -12,7 +12,7 @@ Class Test static public $pub = 'pub'; static protected $pro = 'pro'; static private $pri = 'pri'; - + static function testing() { $ref = new ReflectionClass('Test'); diff --git a/ext/reflection/tests/007.phpt b/ext/reflection/tests/007.phpt index 8dfc2e8bcc..2b4f3df43f 100644 --- a/ext/reflection/tests/007.phpt +++ b/ext/reflection/tests/007.phpt @@ -29,7 +29,7 @@ function test($class) { echo "Exception: " . $e->getMessage() . "\n"; } - + echo "====>newInstance(25)\n"; try { @@ -49,7 +49,7 @@ function test($class) { var_dump($e->getMessage()); } - + echo "\n"; } diff --git a/ext/reflection/tests/008.phpt b/ext/reflection/tests/008.phpt index a5c3ef13e1..80a4a39218 100644 --- a/ext/reflection/tests/008.phpt +++ b/ext/reflection/tests/008.phpt @@ -12,10 +12,10 @@ foreach ($a as $val) { var_dump($e->getMessage()); } } - + $a = array("", 1, ""); $b = array("", "", 1); - + foreach ($a as $key=>$val) { try { new ReflectionMethod($val, $b[$key]); @@ -26,7 +26,7 @@ foreach ($a as $key=>$val) { echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- string(20) "Invalid method name " string(21) "Invalid method name 1" string(21) "Class does not exist" diff --git a/ext/reflection/tests/009.phpt b/ext/reflection/tests/009.phpt index c6a252cfca..09df90c8c3 100644 --- a/ext/reflection/tests/009.phpt +++ b/ext/reflection/tests/009.phpt @@ -47,7 +47,7 @@ var_dump($func->getNumberOfRequiredParameters()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- /** hoho */ diff --git a/ext/reflection/tests/ReflectionClass_FileInfo_basic.phpt b/ext/reflection/tests/ReflectionClass_FileInfo_basic.phpt index da276e68cf..05565efae3 100644 --- a/ext/reflection/tests/ReflectionClass_FileInfo_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_FileInfo_basic.phpt @@ -1,6 +1,6 @@ --TEST-- ReflectionClass::getFileName(), ReflectionClass::getStartLine(), ReflectionClass::getEndLine() ---FILE-- +--FILE-- <?php //New instance of class C - defined below $rc = new ReflectionClass("C"); diff --git a/ext/reflection/tests/ReflectionClass_FileInfo_error.phpt b/ext/reflection/tests/ReflectionClass_FileInfo_error.phpt index b42be136cd..a4e5f95564 100644 --- a/ext/reflection/tests/ReflectionClass_FileInfo_error.phpt +++ b/ext/reflection/tests/ReflectionClass_FileInfo_error.phpt @@ -1,6 +1,6 @@ --TEST-- ReflectionClass::getFileName(), ReflectionClass::getStartLine(), ReflectionClass::getEndLine() - bad params ---FILE-- +--FILE-- <?php Class C { } @@ -10,7 +10,7 @@ $methods = array("getFileName", "getStartLine", "getEndLine"); foreach ($methods as $method) { var_dump($rc->$method()); var_dump($rc->$method(null)); - var_dump($rc->$method('X', 0)); + var_dump($rc->$method('X', 0)); } ?> --EXPECTF-- diff --git a/ext/reflection/tests/ReflectionClass_constructor_002.phpt b/ext/reflection/tests/ReflectionClass_constructor_002.phpt index 3685c639de..64c299592d 100644 --- a/ext/reflection/tests/ReflectionClass_constructor_002.phpt +++ b/ext/reflection/tests/ReflectionClass_constructor_002.phpt @@ -5,43 +5,43 @@ ReflectionClass::__constructor() - bad arguments try { var_dump(new ReflectionClass()); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump(new ReflectionClass(null)); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump(new ReflectionClass(true)); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump(new ReflectionClass(1)); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump(new ReflectionClass(array(1,2,3))); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump(new ReflectionClass("stdClass", 1)); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump(new ReflectionClass("X")); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } ?> diff --git a/ext/reflection/tests/ReflectionClass_export_basic1.phpt b/ext/reflection/tests/ReflectionClass_export_basic1.phpt index 8729731f56..83c514adab 100644 --- a/ext/reflection/tests/ReflectionClass_export_basic1.phpt +++ b/ext/reflection/tests/ReflectionClass_export_basic1.phpt @@ -2,7 +2,7 @@ ReflectionClass::export() - various parameters --FILE-- <?php -Class A { +Class A { public function privf(Exception $a) {} public function pubf(A $a, $b, diff --git a/ext/reflection/tests/ReflectionClass_getConstructor_basic.phpt b/ext/reflection/tests/ReflectionClass_getConstructor_basic.phpt index c572796ae8..5db9d8f3d3 100644 --- a/ext/reflection/tests/ReflectionClass_getConstructor_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_getConstructor_basic.phpt @@ -48,7 +48,7 @@ class D1 extends C { class D2 extends C { } -$classes = array('NewCtor', 'ExtendsNewCtor', 'OldCtor', 'ExtendsOldCtor', +$classes = array('NewCtor', 'ExtendsNewCtor', 'OldCtor', 'ExtendsOldCtor', 'OldAndNewCtor', 'NewAndOldCtor', 'B', 'C', 'D1', 'D2', 'X', 'Y'); foreach ($classes as $class) { @@ -59,9 +59,9 @@ foreach ($classes as $class) { } else { echo "No constructor for $class\n"; } - -} - + +} + ?> --EXPECTF-- Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; OldCtor has a deprecated constructor in %s on line %d diff --git a/ext/reflection/tests/ReflectionClass_getDefaultProperties_001.phpt b/ext/reflection/tests/ReflectionClass_getDefaultProperties_001.phpt index d29436b734..3778adb403 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()); } diff --git a/ext/reflection/tests/ReflectionClass_getDocComment_001.phpt b/ext/reflection/tests/ReflectionClass_getDocComment_001.phpt index 624829f014..8edc6a93a6 100644 --- a/ext/reflection/tests/ReflectionClass_getDocComment_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getDocComment_001.phpt @@ -49,8 +49,8 @@ final class G extends C implements I {} {} $classes = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'I'); foreach ($classes as $class) { echo "\n\n---> Doc comment for class $class:\n"; - $rc = new ReflectionClass($class); - var_dump($rc->getDocComment()); + $rc = new ReflectionClass($class); + var_dump($rc->getDocComment()); } diff --git a/ext/reflection/tests/ReflectionClass_getExtensionName_variation.phpt b/ext/reflection/tests/ReflectionClass_getExtensionName_variation.phpt index 998355cc7c..4f78343081 100644 --- a/ext/reflection/tests/ReflectionClass_getExtensionName_variation.phpt +++ b/ext/reflection/tests/ReflectionClass_getExtensionName_variation.phpt @@ -7,7 +7,7 @@ Rein Velt <rein@velt.org> <?php class myClass - { + { public $varX; public $varY; } diff --git a/ext/reflection/tests/ReflectionClass_getExtension_variation.phpt b/ext/reflection/tests/ReflectionClass_getExtension_variation.phpt index 5409504716..f3697792db 100644 --- a/ext/reflection/tests/ReflectionClass_getExtension_variation.phpt +++ b/ext/reflection/tests/ReflectionClass_getExtension_variation.phpt @@ -7,7 +7,7 @@ Rein Velt <rein@velt.org> <?php class myClass - { + { public $varX; public $varY; } diff --git a/ext/reflection/tests/ReflectionClass_getInterfaces_001.phpt b/ext/reflection/tests/ReflectionClass_getInterfaces_001.phpt index 147d868c94..6f7561c462 100644 --- a/ext/reflection/tests/ReflectionClass_getInterfaces_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getInterfaces_001.phpt @@ -28,7 +28,7 @@ class C5 extends C4 implements I7 {} class C6 implements I1, I2, I3, I4, I5, I6, I7 {} -$classes = array( 'A0', 'A1', 'B0', 'B1', +$classes = array( 'A0', 'A1', 'B0', 'B1', 'I0', 'I1', 'I2', 'I3', 'I4', 'I5', 'I6', 'I7', 'C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6' ); diff --git a/ext/reflection/tests/ReflectionClass_getMethod_001.phpt b/ext/reflection/tests/ReflectionClass_getMethod_001.phpt index 780b558cc7..59887991ec 100644 --- a/ext/reflection/tests/ReflectionClass_getMethod_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethod_001.phpt @@ -7,14 +7,14 @@ Steve Seear <stevseea@php.net> <?php class pubf { public function f() {} - static public function s() {} + static public function s() {} } class subpubf extends pubf { } class protf { protected function f() {} - static protected function s() {} + static protected function s() {} } class subprotf extends protf { } @@ -26,7 +26,7 @@ class privf { class subprivf extends privf { } -$classes = array("pubf", "subpubf", "protf", "subprotf", +$classes = array("pubf", "subpubf", "protf", "subprotf", "privf", "subprivf"); foreach($classes as $class) { echo "Reflecting on class $class: \n"; @@ -34,14 +34,14 @@ foreach($classes as $class) { echo " --> Check for f(): "; var_dump($rc->getMethod("f")); echo " --> Check for s(): "; - var_dump($rc->getMethod("s")); + var_dump($rc->getMethod("s")); echo " --> Check for F(): "; - var_dump($rc->getMethod("F")); + var_dump($rc->getMethod("F")); echo " --> Check for doesntExist(): "; try { var_dump($rc->getMethod("doesntExist")); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } } ?> diff --git a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt index 2baabdedad..f70e779e9f 100644 --- a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt @@ -14,42 +14,42 @@ echo "Check invalid params:\n"; try { var_dump($rc->getMethod()); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getMethod("f", "f")); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getMethod(null)); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getMethod(1)); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getMethod(1.5)); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getMethod(true)); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getMethod(array(1,2,3))); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getMethod(new C)); } catch (Exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } diff --git a/ext/reflection/tests/ReflectionClass_getMethods_001.phpt b/ext/reflection/tests/ReflectionClass_getMethods_001.phpt index 7d4b6774c2..dca9adb56d 100644 --- a/ext/reflection/tests/ReflectionClass_getMethods_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethods_001.phpt @@ -7,14 +7,14 @@ Steve Seear <stevseea@php.net> <?php class pubf { public function f() {} - static public function s() {} + static public function s() {} } class subpubf extends pubf { } class protf { protected function f() {} - static protected function s() {} + static protected function s() {} } class subprotf extends protf { } @@ -26,7 +26,7 @@ class privf { class subprivf extends privf { } -$classes = array("pubf", "subpubf", "protf", "subprotf", +$classes = array("pubf", "subpubf", "protf", "subprotf", "privf", "subprivf"); foreach($classes as $class) { echo "Reflecting on class $class: \n"; diff --git a/ext/reflection/tests/ReflectionClass_getName_basic.phpt b/ext/reflection/tests/ReflectionClass_getName_basic.phpt index e99d30840b..37cec4bc81 100644 --- a/ext/reflection/tests/ReflectionClass_getName_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_getName_basic.phpt @@ -18,7 +18,7 @@ $r3 = new ReflectionClass("TrickClass"); var_dump($r1->getName(), $r2->getName(), $r3->getName()); -?> +?> --EXPECT-- string(8) "stdClass" string(8) "stdClass" diff --git a/ext/reflection/tests/ReflectionClass_getName_error.phpt b/ext/reflection/tests/ReflectionClass_getName_error.phpt index 06cc4155be..145704e7bc 100644 --- a/ext/reflection/tests/ReflectionClass_getName_error.phpt +++ b/ext/reflection/tests/ReflectionClass_getName_error.phpt @@ -7,7 +7,7 @@ $r1 = new ReflectionClass("stdClass"); var_dump($r1->getName('X')); var_dump($r1->getName('X', true)); -?> +?> --EXPECTF-- Warning: ReflectionClass::getName() expects exactly 0 parameters, 1 given in %s on line %d NULL diff --git a/ext/reflection/tests/ReflectionClass_getProperties_001.phpt b/ext/reflection/tests/ReflectionClass_getProperties_001.phpt index ed0b160b93..3554af3890 100644 --- a/ext/reflection/tests/ReflectionClass_getProperties_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperties_001.phpt @@ -14,7 +14,7 @@ class subpubf extends pubf { class protf { protected $a; - static protected $s; + static protected $s; } class subprotf extends protf { } @@ -26,7 +26,7 @@ class privf { class subprivf extends privf { } -$classes = array("pubf", "subpubf", "protf", "subprotf", +$classes = array("pubf", "subpubf", "protf", "subprotf", "privf", "subprivf"); foreach($classes as $class) { echo "Reflecting on class $class: \n"; diff --git a/ext/reflection/tests/ReflectionClass_getProperty_001.phpt b/ext/reflection/tests/ReflectionClass_getProperty_001.phpt index fca68ed30f..830608e0ca 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_001.phpt @@ -26,7 +26,7 @@ class privf { class subprivf extends privf { } -$classes = array("pubf", "subpubf", "protf", "subprotf", +$classes = array("pubf", "subpubf", "protf", "subprotf", "privf", "subprivf"); foreach($classes as $class) { echo "Reflecting on class $class: \n"; @@ -35,25 +35,25 @@ foreach($classes as $class) { echo " --> Check for s: "; var_dump($rc->getProperty("s")); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { echo " --> Check for a: "; var_dump($rc->getProperty("a")); } catch (exception $e) { - echo $e->getMessage() . "\n"; - } + echo $e->getMessage() . "\n"; + } try { echo " --> Check for A: "; var_dump($rc->getProperty("A")); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { echo " --> Check for doesntExist: "; var_dump($rc->getProperty("doesntExist")); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } } diff --git a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt index be7bb53bc8..cf4aca51ea 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt @@ -14,42 +14,42 @@ echo "Check invalid params:\n"; try { var_dump($rc->getProperty()); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getProperty("a", "a")); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getProperty(null)); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getProperty(1)); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getProperty(1.5)); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getProperty(true)); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getProperty(array(1,2,3))); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } try { var_dump($rc->getProperty(new C)); } catch (exception $e) { - echo $e->getMessage() . "\n"; + echo $e->getMessage() . "\n"; } ?> --EXPECTF-- diff --git a/ext/reflection/tests/ReflectionClass_getProperty_003.phpt b/ext/reflection/tests/ReflectionClass_getProperty_003.phpt index e30ea4abac..61d63362dc 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_003.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_003.phpt @@ -9,10 +9,10 @@ class A { static public $pubC = "pubC in A"; static protected $protC = "protC in A"; static private $privC = "privC in A"; - + static public $pubA = "pubA in A"; static protected $protA = "protA in A"; - static private $privA = "privA in A"; + static private $privA = "privA in A"; } class B extends A { @@ -22,7 +22,7 @@ class B extends A { static public $pubB = "pubB in B"; static protected $protB = "protB in B"; - static private $privB = "privB in B"; + static private $privB = "privB in B"; } class C extends B { @@ -34,7 +34,7 @@ class C extends B { class X { static public $pubC = "pubC in X"; static protected $protC = "protC in X"; - static private $privC = "privC in X"; + static private $privC = "privC in X"; } $myC = new C; @@ -52,10 +52,10 @@ function showInfo($name) { try { var_dump($rp); var_dump($rp->getValue($myC)); - } catch (Exception $e) { + } catch (Exception $e) { echo $e->getMessage() . "\n"; return; - } + } } diff --git a/ext/reflection/tests/ReflectionClass_getProperty_004.phpt b/ext/reflection/tests/ReflectionClass_getProperty_004.phpt index e2bb6566ea..ce2aa57871 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_004.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_004.phpt @@ -9,10 +9,10 @@ class 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"; + private $privA = "privA in A"; } class B extends A { @@ -22,7 +22,7 @@ class B extends A { public $pubB = "pubB in B"; protected $protB = "protB in B"; - private $privB = "privB in B"; + private $privB = "privB in B"; } class C extends B { @@ -34,7 +34,7 @@ class C extends B { class X { public $pubC = "pubC in X"; protected $protC = "protC in X"; - private $privC = "privC in X"; + private $privC = "privC in X"; } $myC = new C; @@ -52,10 +52,10 @@ function showInfo($name) { try { var_dump($rp); var_dump($rp->getValue($myC)); - } catch (Exception $e) { + } catch (Exception $e) { echo $e->getMessage() . "\n"; return; - } + } } diff --git a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001.phpt b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001.phpt index ab8afb8cb9..365ec89ff1 100644 --- a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_001.phpt @@ -1,5 +1,5 @@ --TEST-- -ReflectionClass::getStaticPropertyValue() +ReflectionClass::getStaticPropertyValue() --CREDITS-- Robin Fernandes <robinf@php.net> Steve Seear <stevseea@php.net> @@ -42,7 +42,7 @@ try { try { var_dump($rcA->getStaticPropertyValue("privateOverridden")); - echo "you should not see this"; + echo "you should not see this"; } catch (Exception $e) { echo $e->getMessage() . "\n"; } diff --git a/ext/reflection/tests/ReflectionClass_hasConstant_001.phpt b/ext/reflection/tests/ReflectionClass_hasConstant_001.phpt index 1c4cfc6106..d26fad591d 100644 --- a/ext/reflection/tests/ReflectionClass_hasConstant_001.phpt +++ b/ext/reflection/tests/ReflectionClass_hasConstant_001.phpt @@ -22,7 +22,7 @@ echo "Check absent constant: "; var_dump($rc->hasConstant("doesntExist")); -$rd = new ReflectionClass("D"); +$rd = new ReflectionClass("D"); echo "Check inherited constant: "; var_dump($rd->hasConstant("myConst")); echo "Check absent constant: "; diff --git a/ext/reflection/tests/ReflectionClass_hasConstant_basic.phpt b/ext/reflection/tests/ReflectionClass_hasConstant_basic.phpt index aa3af85c1e..69e2a2dac6 100644 --- a/ext/reflection/tests/ReflectionClass_hasConstant_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_hasConstant_basic.phpt @@ -3,7 +3,7 @@ ReflectionClass::hasConstant() --CREDITS-- Marc Veldman <marc@ibuildings.nl> #testfest roosendaal on 2008-05-10 ---FILE-- +--FILE-- <?php //New instance of class C - defined below $rc = new ReflectionClass("C"); diff --git a/ext/reflection/tests/ReflectionClass_hasMethod_001.phpt b/ext/reflection/tests/ReflectionClass_hasMethod_001.phpt index 9a8e252cc7..79009d3bdb 100644 --- a/ext/reflection/tests/ReflectionClass_hasMethod_001.phpt +++ b/ext/reflection/tests/ReflectionClass_hasMethod_001.phpt @@ -34,9 +34,9 @@ foreach($classes as $class) { echo " --> Check for f(): "; var_dump($rc->hasMethod("f")); echo " --> Check for s(): "; - var_dump($rc->hasMethod("s")); + var_dump($rc->hasMethod("s")); echo " --> Check for F(): "; - var_dump($rc->hasMethod("F")); + var_dump($rc->hasMethod("F")); echo " --> Check for doesntExist(): "; var_dump($rc->hasMethod("doesntExist")); } diff --git a/ext/reflection/tests/ReflectionClass_hasMethod_basic.phpt b/ext/reflection/tests/ReflectionClass_hasMethod_basic.phpt index 1c8d08175d..d3ce9155a9 100644 --- a/ext/reflection/tests/ReflectionClass_hasMethod_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_hasMethod_basic.phpt @@ -3,7 +3,7 @@ ReflectionClass::hasMethod() --CREDITS-- Marc Veldman <marc@ibuildings.nl> #testfest roosendaal on 2008-05-10 ---FILE-- +--FILE-- <?php //New instance of class C - defined below $rc = new ReflectionClass("C"); diff --git a/ext/reflection/tests/ReflectionClass_hasProperty_001.phpt b/ext/reflection/tests/ReflectionClass_hasProperty_001.phpt index 3101a7a6ae..a644b2e641 100644 --- a/ext/reflection/tests/ReflectionClass_hasProperty_001.phpt +++ b/ext/reflection/tests/ReflectionClass_hasProperty_001.phpt @@ -26,17 +26,17 @@ class privf { class subprivf extends privf { } -$classes = array("pubf", "subpubf", "protf", "subprotf", +$classes = array("pubf", "subpubf", "protf", "subprotf", "privf", "subprivf"); foreach($classes as $class) { echo "Reflecting on class $class: \n"; $rc = new ReflectionClass($class); echo " --> Check for s: "; - var_dump($rc->hasProperty("s")); + var_dump($rc->hasProperty("s")); echo " --> Check for a: "; var_dump($rc->hasProperty("a")); echo " --> Check for A: "; - var_dump($rc->hasProperty("A")); + var_dump($rc->hasProperty("A")); echo " --> Check for doesntExist: "; var_dump($rc->hasProperty("doesntExist")); } diff --git a/ext/reflection/tests/ReflectionClass_hasProperty_basic.phpt b/ext/reflection/tests/ReflectionClass_hasProperty_basic.phpt index e21656b7b2..751da5e6ea 100644 --- a/ext/reflection/tests/ReflectionClass_hasProperty_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_hasProperty_basic.phpt @@ -3,7 +3,7 @@ ReflectionClass::hasProperty() --CREDITS-- Marc Veldman <marc@ibuildings.nl> #testfest roosendaal on 2008-05-10 ---FILE-- +--FILE-- <?php //New instance of class C - defined below $rc = new ReflectionClass("C"); diff --git a/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt b/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt index 9c2fdedddb..91398867ec 100644 --- a/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt +++ b/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt @@ -12,7 +12,7 @@ class B extends A {} interface I2 extends I1 {} class C implements I2 {} -$classNames = array('A', 'B', 'C', 'I1', 'I2'); +$classNames = array('A', 'B', 'C', 'I1', 'I2'); foreach ($classNames as $className) { $rcs[$className] = new ReflectionClass($className); @@ -26,7 +26,7 @@ foreach ($rcs as $childName => $child) { var_dump($child->implementsInterface($parent)); } catch (Exception $e) { echo $e->getMessage() . "\n"; - } + } echo " - Using string argument: "; try { var_dump($child->implementsInterface($parentName)); diff --git a/ext/reflection/tests/ReflectionClass_isInstance_basic.phpt b/ext/reflection/tests/ReflectionClass_isInstance_basic.phpt index 8bf2841043..a108718894 100644 --- a/ext/reflection/tests/ReflectionClass_isInstance_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_isInstance_basic.phpt @@ -22,7 +22,7 @@ foreach ($classes as $class) { foreach ($instances as $name => $instance) { echo "is $name a $class? "; - var_dump($rc->isInstance($instance)); + var_dump($rc->isInstance($instance)); } } diff --git a/ext/reflection/tests/ReflectionClass_isInstantiable_basic.phpt b/ext/reflection/tests/ReflectionClass_isInstantiable_basic.phpt index 5b8c92010e..ef179721dc 100644 --- a/ext/reflection/tests/ReflectionClass_isInstantiable_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_isInstantiable_basic.phpt @@ -27,7 +27,7 @@ $classes = array("C", "iface", "ifaceImpl", "abstractClass", "D"); foreach($classes as $class ) { $reflectionClass = new ReflectionClass($class); echo "Is $class instantiable? "; - var_dump($reflectionClass->IsInstantiable()); + var_dump($reflectionClass->IsInstantiable()); } diff --git a/ext/reflection/tests/ReflectionClass_isInstantiable_variation.phpt b/ext/reflection/tests/ReflectionClass_isInstantiable_variation.phpt index e334a90a72..1378edd3d2 100644 --- a/ext/reflection/tests/ReflectionClass_isInstantiable_variation.phpt +++ b/ext/reflection/tests/ReflectionClass_isInstantiable_variation.phpt @@ -36,7 +36,7 @@ $classes = array("noCtor", "publicCtorNew", "protectedCtorNew", "privateCtorNew" foreach($classes as $class ) { $reflectionClass = new ReflectionClass($class); echo "Is $class instantiable? "; - var_dump($reflectionClass->IsInstantiable()); + var_dump($reflectionClass->IsInstantiable()); } ?> diff --git a/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt b/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt index 42dc647a02..8a0098ad8d 100644 --- a/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt +++ b/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt @@ -26,7 +26,7 @@ Class ExtendsIteratorAggregateImpl extends IterarorAggregateImpl { Class A { } -$classes = array('Traversable', 'Iterator', 'IteratorAggregate', 'ExtendsIterator', 'ExtendsIteratorAggregate', +$classes = array('Traversable', 'Iterator', 'IteratorAggregate', 'ExtendsIterator', 'ExtendsIteratorAggregate', 'IteratorImpl', 'IterarorAggregateImpl', 'ExtendsIteratorImpl', 'ExtendsIteratorAggregateImpl', 'A'); foreach($classes as $class) { diff --git a/ext/reflection/tests/ReflectionClass_isSubclassOf_basic.phpt b/ext/reflection/tests/ReflectionClass_isSubclassOf_basic.phpt index 538a26c5a5..c05ec27ccd 100644 --- a/ext/reflection/tests/ReflectionClass_isSubclassOf_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_isSubclassOf_basic.phpt @@ -9,7 +9,7 @@ class C extends B {} interface I {} class X implements I {} -$classNames = array('A', 'B', 'C', 'I', 'X'); +$classNames = array('A', 'B', 'C', 'I', 'X'); foreach ($classNames as $className) { $rcs[$className] = new ReflectionClass($className); @@ -21,7 +21,7 @@ foreach ($rcs as $childName => $child) { echo " - Using object argument: "; var_dump($child->isSubclassOf($parent)); echo " - Using string argument: "; - var_dump($child->isSubclassOf($parentName)); + var_dump($child->isSubclassOf($parentName)); } } ?> diff --git a/ext/reflection/tests/ReflectionClass_newInstanceArgs_001.phpt b/ext/reflection/tests/ReflectionClass_newInstanceArgs_001.phpt index 3ad654dd84..068710311d 100644 --- a/ext/reflection/tests/ReflectionClass_newInstanceArgs_001.phpt +++ b/ext/reflection/tests/ReflectionClass_newInstanceArgs_001.phpt @@ -7,8 +7,8 @@ Steve Seear <stevseea@php.net> <?php class A { public function A() { - echo "In constructor of class A\n"; - } + echo "In constructor of class A\n"; + } } class B { @@ -19,16 +19,16 @@ class B { class C { protected function __construct() { - echo "In constructor of class C\n"; + echo "In constructor of class C\n"; } } class D { private function __construct() { - echo "In constructor of class D\n"; + echo "In constructor of class D\n"; } } -class E { +class E { } diff --git a/ext/reflection/tests/ReflectionClass_newInstance_001.phpt b/ext/reflection/tests/ReflectionClass_newInstance_001.phpt index e29cc8734f..c91d2ee958 100644 --- a/ext/reflection/tests/ReflectionClass_newInstance_001.phpt +++ b/ext/reflection/tests/ReflectionClass_newInstance_001.phpt @@ -7,8 +7,8 @@ Steve Seear <stevseea@php.net> <?php class A { public function A() { - echo "In constructor of class A\n"; - } + echo "In constructor of class A\n"; + } } class B { @@ -19,16 +19,16 @@ class B { class C { protected function __construct() { - echo "In constructor of class C\n"; + echo "In constructor of class C\n"; } } class D { private function __construct() { - echo "In constructor of class D\n"; + echo "In constructor of class D\n"; } } -class E { +class E { } diff --git a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001.phpt b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001.phpt index 0004f3ff5a..bfefce369e 100644 --- a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001.phpt +++ b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_001.phpt @@ -1,5 +1,5 @@ --TEST-- -ReflectionClass::setStaticPropertyValue() +ReflectionClass::setStaticPropertyValue() --CREDITS-- Robin Fernandes <robinf@php.net> Steve Seear <stevseea@php.net> @@ -43,7 +43,7 @@ try { try { var_dump($rcA->setStaticPropertyValue("privateOverridden", "new value 9")); - echo "you should not see this"; + echo "you should not see this"; } catch (Exception $e) { echo $e->getMessage() . "\n"; } diff --git a/ext/reflection/tests/ReflectionFunction_getClosure_basic.phpt b/ext/reflection/tests/ReflectionFunction_getClosure_basic.phpt index e78a28a551..2b7927e7ac 100644 --- a/ext/reflection/tests/ReflectionFunction_getClosure_basic.phpt +++ b/ext/reflection/tests/ReflectionFunction_getClosure_basic.phpt @@ -5,7 +5,7 @@ Test ReflectionFunction::getClosure() function : basic functionality /* Prototype : public mixed ReflectionFunction::getClosure() * Description: Returns a dynamically created closure for the function * Source code: ext/reflection/php_reflection.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing ReflectionFunction::getClosure() : basic functionality ***\n"; diff --git a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt index f8d476ae46..818d57e5f0 100644 --- a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt +++ b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt @@ -3,7 +3,7 @@ ReflectionFunction::isDeprecated --CREDITS-- Stefan Koopmanschap <stefan@phpgg.nl> TestFest PHP|Tek ---FILE-- +--FILE-- <?php // We currently don't have any deprecated functions :/ $rc = new ReflectionFunction('var_dump'); diff --git a/ext/reflection/tests/ReflectionMethod_basic1.phpt b/ext/reflection/tests/ReflectionMethod_basic1.phpt index 75ab957690..d403d2d2be 100644 --- a/ext/reflection/tests/ReflectionMethod_basic1.phpt +++ b/ext/reflection/tests/ReflectionMethod_basic1.phpt @@ -31,17 +31,17 @@ class TestClass public function foo() { echo "Called foo()\n"; } - + static function stat() { echo "Called stat()\n"; } - + private function priv() { echo "Called priv()\n"; } - + protected function prot() {} - + public function __destruct() {} } diff --git a/ext/reflection/tests/ReflectionMethod_getClosure_basic.phpt b/ext/reflection/tests/ReflectionMethod_getClosure_basic.phpt index c7d63446e5..f0a414d56b 100644 --- a/ext/reflection/tests/ReflectionMethod_getClosure_basic.phpt +++ b/ext/reflection/tests/ReflectionMethod_getClosure_basic.phpt @@ -5,7 +5,7 @@ Test ReflectionMethod::getClosure() function : basic functionality /* Prototype : public mixed ReflectionFunction::getClosure() * Description: Returns a dynamically created closure for the method * Source code: ext/reflection/php_reflection.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing ReflectionMethod::getClosure() : basic functionality ***\n"; diff --git a/ext/reflection/tests/ReflectionMethod_getDeclaringClass_basic.phpt b/ext/reflection/tests/ReflectionMethod_getDeclaringClass_basic.phpt index 6afc70032a..8e34d61731 100644 --- a/ext/reflection/tests/ReflectionMethod_getDeclaringClass_basic.phpt +++ b/ext/reflection/tests/ReflectionMethod_getDeclaringClass_basic.phpt @@ -17,7 +17,7 @@ var_dump($methodInfo->getDeclaringClass()); $methodInfo = new ReflectionMethod('B', 'bar'); var_dump($methodInfo->getDeclaringClass()); -?> +?> --EXPECTF-- object(ReflectionClass)#%d (1) { ["name"]=> diff --git a/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt b/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt index e79092421d..e011f259b2 100644 --- a/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt +++ b/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt @@ -26,7 +26,7 @@ class A { * My Doc Comment for A::finalStatPubf */ final static public function finalStatPubf() {} - + } diff --git a/ext/reflection/tests/ReflectionMethod_invokeArgs_error1.phpt b/ext/reflection/tests/ReflectionMethod_invokeArgs_error1.phpt index eec5a3e618..dbd128e18c 100644 --- a/ext/reflection/tests/ReflectionMethod_invokeArgs_error1.phpt +++ b/ext/reflection/tests/ReflectionMethod_invokeArgs_error1.phpt @@ -19,7 +19,7 @@ $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs'); $testClassInstance = new TestClass(); echo "\nMethod with args:\n"; -var_dump($methodWithArgs->invokeArgs($testClassInstance, array())); +var_dump($methodWithArgs->invokeArgs($testClassInstance, array())); ?> --EXPECTF-- diff --git a/ext/reflection/tests/ReflectionObject_FileInfo_basic.phpt b/ext/reflection/tests/ReflectionObject_FileInfo_basic.phpt index 00214dcdc5..82c68bbabe 100644 --- a/ext/reflection/tests/ReflectionObject_FileInfo_basic.phpt +++ b/ext/reflection/tests/ReflectionObject_FileInfo_basic.phpt @@ -1,6 +1,6 @@ --TEST-- ReflectionObject::getFileName(), ReflectionObject::getStartLine(), ReflectionObject::getEndLine() - basic function ---FILE-- +--FILE-- <?php $rc = new ReflectionObject(new C); var_dump($rc->getFileName()); diff --git a/ext/reflection/tests/ReflectionObject_FileInfo_error.phpt b/ext/reflection/tests/ReflectionObject_FileInfo_error.phpt index d30e677178..623ba7b480 100644 --- a/ext/reflection/tests/ReflectionObject_FileInfo_error.phpt +++ b/ext/reflection/tests/ReflectionObject_FileInfo_error.phpt @@ -1,6 +1,6 @@ --TEST-- ReflectionObject::getFileName(), ReflectionObject::getStartLine(), ReflectionObject::getEndLine() -invalid aparams ---FILE-- +--FILE-- <?php Class C { } @@ -10,7 +10,7 @@ $methods = array("getFileName", "getStartLine", "getEndLine"); foreach ($methods as $method) { var_dump($rc->$method()); var_dump($rc->$method(null)); - var_dump($rc->$method('X', 0)); + var_dump($rc->$method('X', 0)); } ?> --EXPECTF-- diff --git a/ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt b/ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt index 2fb43562bb..aecc9b97d2 100644 --- a/ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt +++ b/ext/reflection/tests/ReflectionObject_getConstructor_basic.phpt @@ -48,7 +48,7 @@ class D1 extends C { class D2 extends C { } -$classes = array('NewCtor', 'ExtendsNewCtor', 'OldCtor', 'ExtendsOldCtor', +$classes = array('NewCtor', 'ExtendsNewCtor', 'OldCtor', 'ExtendsOldCtor', 'OldAndNewCtor', 'NewAndOldCtor', 'B', 'C', 'D1', 'D2', 'X', 'Y'); foreach ($classes as $class) { @@ -59,9 +59,9 @@ foreach ($classes as $class) { } else { echo "No constructor for $class\n"; } - -} - + +} + ?> --EXPECTF-- Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; OldCtor has a deprecated constructor in %s on line %d diff --git a/ext/reflection/tests/ReflectionObject_getName_error1.phpt b/ext/reflection/tests/ReflectionObject_getName_error1.phpt index 0d88c84398..9f50209b6b 100644 --- a/ext/reflection/tests/ReflectionObject_getName_error1.phpt +++ b/ext/reflection/tests/ReflectionObject_getName_error1.phpt @@ -3,7 +3,7 @@ ReflectionObject::getName - forbid static invocation --FILE-- <?php ReflectionObject::getName(); -?> +?> --EXPECTF-- Fatal error: Uncaught Error: Non-static method ReflectionClass::getName() cannot be called statically in %s:2 Stack trace: diff --git a/ext/reflection/tests/ReflectionObject_isInstance_basic.phpt b/ext/reflection/tests/ReflectionObject_isInstance_basic.phpt index 48778f83c2..ff310df09b 100644 --- a/ext/reflection/tests/ReflectionObject_isInstance_basic.phpt +++ b/ext/reflection/tests/ReflectionObject_isInstance_basic.phpt @@ -16,7 +16,7 @@ foreach ($classes as $class) { $ro = new ReflectionObject(new $class); foreach ($instances as $name => $instance) { echo "is $name a $class? "; - var_dump($ro->isInstance($instance)); + var_dump($ro->isInstance($instance)); } } diff --git a/ext/reflection/tests/ReflectionObject_isInstantiable_basic.phpt b/ext/reflection/tests/ReflectionObject_isInstantiable_basic.phpt index c362704b1c..982580fc56 100644 --- a/ext/reflection/tests/ReflectionObject_isInstantiable_basic.phpt +++ b/ext/reflection/tests/ReflectionObject_isInstantiable_basic.phpt @@ -27,7 +27,7 @@ $classes = array("C", "ifaceImpl", "D"); foreach($classes as $class ) { $ro = new ReflectionObject(new $class); echo "Is $class instantiable? "; - var_dump($ro->IsInstantiable()); + var_dump($ro->IsInstantiable()); } ?> --EXPECT-- diff --git a/ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt b/ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt index c77c039d4d..f6d4c9d3d2 100644 --- a/ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt +++ b/ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt @@ -6,7 +6,7 @@ class privateCtorOld { private function privateCtorOld() {} public static function reflectionObjectFactory() { return new ReflectionObject(new self); - } + } } $reflectionObject = privateCtorOld::reflectionObjectFactory(); diff --git a/ext/reflection/tests/ReflectionObject_isInstantiable_variation.phpt b/ext/reflection/tests/ReflectionObject_isInstantiable_variation.phpt index 1e5be59299..167b6b0ff3 100644 --- a/ext/reflection/tests/ReflectionObject_isInstantiable_variation.phpt +++ b/ext/reflection/tests/ReflectionObject_isInstantiable_variation.phpt @@ -6,49 +6,49 @@ ReflectionObject::IsInstantiable() - variation - constructors class noCtor { public static function reflectionObjectFactory() { return new ReflectionObject(new self); - } + } } class publicCtorNew { public function __construct() {} public static function reflectionObjectFactory() { return new ReflectionObject(new self); - } + } } class protectedCtorNew { protected function __construct() {} public static function reflectionObjectFactory() { return new ReflectionObject(new self); - } + } } class privateCtorNew { private function __construct() {} public static function reflectionObjectFactory() { return new ReflectionObject(new self); - } + } } class publicCtorOld { public function publicCtorOld() {} public static function reflectionObjectFactory() { return new ReflectionObject(new self); - } + } } class protectedCtorOld { protected function protectedCtorOld() {} public static function reflectionObjectFactory() { return new ReflectionObject(new self); - } + } } class privateCtorOld { private function privateCtorOld() {} public static function reflectionObjectFactory() { return new ReflectionObject(new self); - } + } } @@ -65,7 +65,7 @@ $reflectionObjects = array( foreach($reflectionObjects as $reflectionObject ) { $name = $reflectionObject->getName(); echo "Is $name instantiable? "; - var_dump($reflectionObject->IsInstantiable()); + var_dump($reflectionObject->IsInstantiable()); } ?> --EXPECTF-- diff --git a/ext/reflection/tests/ReflectionObject_isSubclassOf_basic.phpt b/ext/reflection/tests/ReflectionObject_isSubclassOf_basic.phpt index 59832c2d02..25c29c7534 100644 --- a/ext/reflection/tests/ReflectionObject_isSubclassOf_basic.phpt +++ b/ext/reflection/tests/ReflectionObject_isSubclassOf_basic.phpt @@ -9,7 +9,7 @@ class C extends B {} interface I {} class X implements I {} -$classNames = array('A', 'B', 'C', 'I', 'X'); +$classNames = array('A', 'B', 'C', 'I', 'X'); //Create ReflectionClasses foreach ($classNames as $className) { @@ -33,7 +33,7 @@ foreach ($ros as $childName => $child) { var_dump($child->isSubclassOf($ros[$parentName])); } echo " - Using string argument: "; - var_dump($child->isSubclassOf($parentName)); + var_dump($child->isSubclassOf($parentName)); } } ?> diff --git a/ext/reflection/tests/ReflectionParameter_001.phpt b/ext/reflection/tests/ReflectionParameter_001.phpt index dae3ac7235..71dc69ca4e 100644 --- a/ext/reflection/tests/ReflectionParameter_001.phpt +++ b/ext/reflection/tests/ReflectionParameter_001.phpt @@ -9,11 +9,11 @@ class ReflectTestClass { public static function twoArgFunction($theIncrement, $anotherParam) { return ++$theIncrement; } - + public function oneArgNonStatic($theParam) { $theParam--; } - + public function noArgs() { echo "No arg function\n"; } diff --git a/ext/reflection/tests/ReflectionParameter_002.phpt b/ext/reflection/tests/ReflectionParameter_002.phpt index 3b7df6f95b..349e6f0ca9 100644 --- a/ext/reflection/tests/ReflectionParameter_002.phpt +++ b/ext/reflection/tests/ReflectionParameter_002.phpt @@ -9,7 +9,7 @@ class ReflectTestClass { public static function staticMethod(&$paramOne, $anotherParam) { return ++$theIncrement; } - + public function instanceMethod($firstParam, &$secondParam) { $firstParam = "Hello\n"; } diff --git a/ext/reflection/tests/ReflectionParameter_003.phpt b/ext/reflection/tests/ReflectionParameter_003.phpt index f7ced9ad00..cc092bffcc 100644 --- a/ext/reflection/tests/ReflectionParameter_003.phpt +++ b/ext/reflection/tests/ReflectionParameter_003.phpt @@ -7,13 +7,13 @@ Steve Seear <stevseea@php.net> <?php class ReflectTestClass { - public static function staticMethod($paramOne, $anotherParam = "bob", + public static function staticMethod($paramOne, $anotherParam = "bob", &$thirdParam = "jack", $arrayParam = array('one')) { echo "hello from test\n"; echo "third is $thirdParam\n"; return ++$theIncrement; } - + } $jane = "jane"; @@ -36,7 +36,7 @@ foreach($refParameters as $parameter) { } else { echo "this parameter has no default value\n"; } - + /* $val = 0; try { @@ -47,7 +47,7 @@ foreach($refParameters as $parameter) { echo "\n"; } */ - + echo "\n"; } diff --git a/ext/reflection/tests/ReflectionParameter_invalidMethodInConstructor.phpt b/ext/reflection/tests/ReflectionParameter_invalidMethodInConstructor.phpt index 654a76aae0..eb6d4644a0 100644 --- a/ext/reflection/tests/ReflectionParameter_invalidMethodInConstructor.phpt +++ b/ext/reflection/tests/ReflectionParameter_invalidMethodInConstructor.phpt @@ -1,6 +1,6 @@ --TEST-- ReflectionParameter::__construct(): Invalid method as constructor ---FILE-- +--FILE-- <?php // Invalid class name diff --git a/ext/reflection/tests/ReflectionProperty_basic2.phpt b/ext/reflection/tests/ReflectionProperty_basic2.phpt index 8db0e2013f..09495f744b 100644 --- a/ext/reflection/tests/ReflectionProperty_basic2.phpt +++ b/ext/reflection/tests/ReflectionProperty_basic2.phpt @@ -35,7 +35,7 @@ reflectProperty("TestClass", "stat"); reflectProperty("TestClass", "prot"); reflectProperty("TestClass", "priv"); -?> +?> --EXPECTF-- ********************************** Reflecting on property TestClass::pub diff --git a/ext/reflection/tests/ReflectionProperty_constructor_variation1.phpt b/ext/reflection/tests/ReflectionProperty_constructor_variation1.phpt index 65339e308a..d744fc8995 100644 --- a/ext/reflection/tests/ReflectionProperty_constructor_variation1.phpt +++ b/ext/reflection/tests/ReflectionProperty_constructor_variation1.phpt @@ -5,14 +5,14 @@ ReflectionProperty::__construct(): ensure inherited private props can't be acces class C { private $p = 1; - + static function testFromC() { try { $rp = new ReflectionProperty("D", "p"); var_dump($rp); } catch (Exception $e) { echo $e->getMessage(); - } + } } } @@ -23,7 +23,7 @@ class D extends C{ var_dump($rp); } catch (Exception $e) { echo $e->getMessage(); - } + } } } diff --git a/ext/reflection/tests/ReflectionProperty_getDeclaringClass_variation1.phpt b/ext/reflection/tests/ReflectionProperty_getDeclaringClass_variation1.phpt index bf525e1c4f..c7c9366471 100644 --- a/ext/reflection/tests/ReflectionProperty_getDeclaringClass_variation1.phpt +++ b/ext/reflection/tests/ReflectionProperty_getDeclaringClass_variation1.phpt @@ -16,7 +16,7 @@ var_dump($propInfo->getDeclaringClass()); echo "Wrong number of params:\n"; $propInfo->getDeclaringClass(1); -?> +?> --EXPECTF-- object(ReflectionClass)#%d (1) { ["name"]=> diff --git a/ext/reflection/tests/ReflectionProperty_getModifiers.001.phpt b/ext/reflection/tests/ReflectionProperty_getModifiers.001.phpt index e8b9b6ed0d..e2ff294261 100644 --- a/ext/reflection/tests/ReflectionProperty_getModifiers.001.phpt +++ b/ext/reflection/tests/ReflectionProperty_getModifiers.001.phpt @@ -8,13 +8,13 @@ Steve Seear <stevseea@php.net> function reflectProperty($class, $property) { $propInfo = new ReflectionProperty($class, $property); - + echo "**********************************\n"; echo "Reflecting on property $class::$property\n\n"; - + echo "getModifiers():\n"; var_dump($propInfo->getModifiers()); - + echo "\n**********************************\n"; } diff --git a/ext/reflection/tests/ReflectionProperty_isDefault_basic.phpt b/ext/reflection/tests/ReflectionProperty_isDefault_basic.phpt index 22ee117cc8..2aa630d9d0 100644 --- a/ext/reflection/tests/ReflectionProperty_isDefault_basic.phpt +++ b/ext/reflection/tests/ReflectionProperty_isDefault_basic.phpt @@ -28,7 +28,7 @@ echo "Wrong number of params:\n"; $propInfo = new ReflectionProperty('TestClass', 'pub'); $propInfo->isDefault(1); -?> +?> --EXPECTF-- ********************************** Reflecting on property TestClass::pub diff --git a/ext/reflection/tests/bug29268.phpt b/ext/reflection/tests/bug29268.phpt index 0ab7e332b2..9166bd3aa9 100644 --- a/ext/reflection/tests/bug29268.phpt +++ b/ext/reflection/tests/bug29268.phpt @@ -13,7 +13,7 @@ class B{ } $ref = new reflectionMethod('B','doit'); -$parameters = $ref->getParameters(); +$parameters = $ref->getParameters(); foreach($parameters as $parameter) { $class = $parameter->getClass(); diff --git a/ext/reflection/tests/bug29523.phpt b/ext/reflection/tests/bug29523.phpt index e74403c6a6..fafc93ef40 100644 --- a/ext/reflection/tests/bug29523.phpt +++ b/ext/reflection/tests/bug29523.phpt @@ -11,7 +11,7 @@ function optionalTest(TestClass $a, TestClass $b, $c = 3) { } -$function = new ReflectionFunction('optionalTest'); +$function = new ReflectionFunction('optionalTest'); $numberOfNotOptionalParameters = 0; $numberOfOptionalParameters = 0; foreach($function->getParameters() as $parameter) diff --git a/ext/reflection/tests/bug36337.phpt b/ext/reflection/tests/bug36337.phpt index 369d5bef1a..ebe64431a7 100644 --- a/ext/reflection/tests/bug36337.phpt +++ b/ext/reflection/tests/bug36337.phpt @@ -23,6 +23,6 @@ $x = new myEnum(); echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- bool(false) Done diff --git a/ext/reflection/tests/bug36434.phpt b/ext/reflection/tests/bug36434.phpt index 9598a40b7b..502ac741a9 100644 --- a/ext/reflection/tests/bug36434.phpt +++ b/ext/reflection/tests/bug36434.phpt @@ -26,6 +26,6 @@ foreach ($r->GetProperties() as $p) } ?> ---EXPECT-- +--EXPECT-- bar foo ancester ancester diff --git a/ext/reflection/tests/bug37964.phpt b/ext/reflection/tests/bug37964.phpt index 935119314f..f3c161da8d 100644 --- a/ext/reflection/tests/bug37964.phpt +++ b/ext/reflection/tests/bug37964.phpt @@ -5,7 +5,7 @@ Reflection Bug #37964 (Reflection shows private methods of parent class) abstract class foobar { private function test2() { - } + } } class foo extends foobar { private $foo = 1; diff --git a/ext/reflection/tests/bug38194.phpt b/ext/reflection/tests/bug38194.phpt index 1430ba45ae..dfbfb67147 100644 --- a/ext/reflection/tests/bug38194.phpt +++ b/ext/reflection/tests/bug38194.phpt @@ -3,7 +3,7 @@ Reflection Bug #38194 (ReflectionClass::isSubclassOf() returns TRUE for the clas --FILE-- <?php class ObjectOne { } - + $objectClass = new ReflectionClass('ObjectOne'); var_dump($objectClass->isSubclassOf($objectClass)); ?> diff --git a/ext/reflection/tests/bug38217.phpt b/ext/reflection/tests/bug38217.phpt index b02c8210e5..46f2dc3e0e 100644 --- a/ext/reflection/tests/bug38217.phpt +++ b/ext/reflection/tests/bug38217.phpt @@ -28,7 +28,7 @@ var_dump($class->newInstanceArgs(array('test'))); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- object(ObjectOne)#%d (0) { } Exception: Too few arguments to function ObjectTwo::__construct(), 0 passed and exactly 1 expected diff --git a/ext/reflection/tests/bug38653.phpt b/ext/reflection/tests/bug38653.phpt index 09a309e67c..64b1aad15b 100644 --- a/ext/reflection/tests/bug38653.phpt +++ b/ext/reflection/tests/bug38653.phpt @@ -20,7 +20,7 @@ var_dump($foo->getConstant("no such const")); echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- int(10) string(0) "" string(4) "test" diff --git a/ext/reflection/tests/bug39001.phpt b/ext/reflection/tests/bug39001.phpt index 79d2d8352e..ec4b7a5d1b 100644 --- a/ext/reflection/tests/bug39001.phpt +++ b/ext/reflection/tests/bug39001.phpt @@ -21,7 +21,7 @@ var_dump($r->getProperty('protectedVar')->getDeclaringClass()->getName()); echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- string(7) "CParent" string(7) "CParent" Done diff --git a/ext/reflection/tests/bug39067.phpt b/ext/reflection/tests/bug39067.phpt index 20fdb68ddd..f549f794e0 100644 --- a/ext/reflection/tests/bug39067.phpt +++ b/ext/reflection/tests/bug39067.phpt @@ -37,7 +37,7 @@ var_dump($rc->getProperty('x')->getDeclaringClass()->getName()); echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- string(1) "C" string(1) "B" string(1) "A" diff --git a/ext/reflection/tests/bug39884.phpt b/ext/reflection/tests/bug39884.phpt index dbc57ee521..1d0e04b0b9 100644 --- a/ext/reflection/tests/bug39884.phpt +++ b/ext/reflection/tests/bug39884.phpt @@ -15,7 +15,7 @@ $test1->paramTest($test2); $refParam = new ReflectionParameter(array('stubParamTest', 'paramTest'), 'param'); var_dump($refParam->getClass()); ?> ---EXPECT-- +--EXPECT-- object(ReflectionClass)#4 (1) { ["name"]=> string(13) "stubParamTest" diff --git a/ext/reflection/tests/bug40431.phpt b/ext/reflection/tests/bug40431.phpt index 0c96e70faf..637b1457cd 100644 --- a/ext/reflection/tests/bug40431.phpt +++ b/ext/reflection/tests/bug40431.phpt @@ -76,7 +76,7 @@ var_dump($props[0]->isProtected()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- === 1st test === array(1) { [0]=> diff --git a/ext/reflection/tests/bug40794.phpt b/ext/reflection/tests/bug40794.phpt index ea3e3967ca..c1830ddcd2 100644 --- a/ext/reflection/tests/bug40794.phpt +++ b/ext/reflection/tests/bug40794.phpt @@ -20,7 +20,7 @@ var_dump($array); echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- array(3) { ["prop1"]=> string(1) "1" diff --git a/ext/reflection/tests/bug41061.phpt b/ext/reflection/tests/bug41061.phpt index 771cd408d9..d907907dcf 100644 --- a/ext/reflection/tests/bug41061.phpt +++ b/ext/reflection/tests/bug41061.phpt @@ -5,7 +5,7 @@ Reflection Bug #41061 ("visibility error" in ReflectionFunction::export()) function foo() { } - + class bar { private function foo() { } diff --git a/ext/reflection/tests/bug41884.phpt b/ext/reflection/tests/bug41884.phpt index 31aa7c94e3..25d2b7cb74 100644 --- a/ext/reflection/tests/bug41884.phpt +++ b/ext/reflection/tests/bug41884.phpt @@ -15,7 +15,7 @@ var_dump($class->getDefaultProperties()); echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- array(2) { ["fooStatic"]=> string(3) "foo" diff --git a/ext/reflection/tests/bug42976.phpt b/ext/reflection/tests/bug42976.phpt index 21aff8d4cc..7edf06474c 100644 --- a/ext/reflection/tests/bug42976.phpt +++ b/ext/reflection/tests/bug42976.phpt @@ -23,7 +23,7 @@ var_dump($x); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(9) "x.changed" Warning: Parameter 1 to C::__construct() expected to be a reference, value given in %sbug42976.php on line 15 diff --git a/ext/reflection/tests/bug45571.phpt b/ext/reflection/tests/bug45571.phpt index 4df542ede1..2aa5698879 100644 --- a/ext/reflection/tests/bug45571.phpt +++ b/ext/reflection/tests/bug45571.phpt @@ -7,7 +7,7 @@ Class A { static private $a = 0; static protected $b = 1; static public $c = 2; - + private function f() {} private static function sf() {} } diff --git a/ext/reflection/tests/bug45765.phpt b/ext/reflection/tests/bug45765.phpt index 7963a03eea..80cb39d0ac 100644 --- a/ext/reflection/tests/bug45765.phpt +++ b/ext/reflection/tests/bug45765.phpt @@ -9,16 +9,16 @@ class foo2 { class foo extends foo2 { const BAR = "foo's bar"; - + function test($a = self::BAR) { } - + function test2($a = parent::BAR) { } function test3($a = foo::BAR) { } - + function test4($a = foo2::BAR) { } } diff --git a/ext/reflection/tests/bug46064.phpt b/ext/reflection/tests/bug46064.phpt index 510e71b00a..d8ee411905 100644 --- a/ext/reflection/tests/bug46064.phpt +++ b/ext/reflection/tests/bug46064.phpt @@ -36,7 +36,7 @@ class bar extends test { public function __construct() { $this->foobar = 2; $this->a = 200; - + $p = new reflectionproperty($this, 'foobar'); var_dump($p->getValue($this), $p->isDefault(), $p->isPublic()); } diff --git a/ext/reflection/tests/bug46064_2.phpt b/ext/reflection/tests/bug46064_2.phpt index 0b74708dff..6ac72bbd27 100644 --- a/ext/reflection/tests/bug46064_2.phpt +++ b/ext/reflection/tests/bug46064_2.phpt @@ -3,7 +3,7 @@ Bug #46064.2 (Exception when creating ReflectionProperty object on dynamicly cre --FILE-- <?php -class foo { +class foo { } $x = new foo; @@ -25,7 +25,7 @@ class test extends bar { public function __construct() { parent::__construct(); - + $p = new reflectionobject($this); var_dump($h = $p->getProperty('a')); var_dump($h->isDefault(), $h->isProtected(), $h->isPrivate(), $h->isPublic(), $h->isStatic()); diff --git a/ext/reflection/tests/bug47254.phpt b/ext/reflection/tests/bug47254.phpt index 38cdcd62b4..e3ce114c9c 100644 --- a/ext/reflection/tests/bug47254.phpt +++ b/ext/reflection/tests/bug47254.phpt @@ -9,7 +9,7 @@ Testfest 2009 Munich class A { protected function a() {} - + } class B extends A diff --git a/ext/reflection/tests/bug49719.phpt b/ext/reflection/tests/bug49719.phpt index b62e1b2ec5..6211b6b543 100644 --- a/ext/reflection/tests/bug49719.phpt +++ b/ext/reflection/tests/bug49719.phpt @@ -13,10 +13,10 @@ class B extends A { try { $b = new B; $ref = new ReflectionClass($b); - + var_dump(property_exists('b', 'a')); var_dump(property_exists($b, 'a')); - var_dump($ref->hasProperty('a')); + var_dump($ref->hasProperty('a')); var_dump($ref->getProperty('a')); } catch (Exception $e) { var_dump($e->getMessage()); diff --git a/ext/reflection/tests/bug71767.phpt b/ext/reflection/tests/bug71767.phpt index ed83e486d8..c20073c67a 100644 --- a/ext/reflection/tests/bug71767.phpt +++ b/ext/reflection/tests/bug71767.phpt @@ -16,7 +16,7 @@ class Foo { /** wrong docblock */ $arg ) { - + } } diff --git a/ext/reflection/tests/bug72174.phpt b/ext/reflection/tests/bug72174.phpt index 94416d6153..dacfc0e55e 100644 --- a/ext/reflection/tests/bug72174.phpt +++ b/ext/reflection/tests/bug72174.phpt @@ -17,7 +17,7 @@ class Foo var_dump(__METHOD__); return true; } - + public function __get($name) { var_dump(__METHOD__); diff --git a/ext/reflection/tests/bug72661.phpt b/ext/reflection/tests/bug72661.phpt index 40d14922b8..b1cb764beb 100644 --- a/ext/reflection/tests/bug72661.phpt +++ b/ext/reflection/tests/bug72661.phpt @@ -2,7 +2,7 @@ Bug #72661 (ReflectionType::__toString crashes with iterable) --FILE-- <?php -function test(iterable $arg) { } +function test(iterable $arg) { } var_dump((string)(new ReflectionParameter("test", 0))->getType()); ?> diff --git a/ext/reflection/tests/bug74949.phpt b/ext/reflection/tests/bug74949.phpt index d69597efb8..2970c5911f 100644 --- a/ext/reflection/tests/bug74949.phpt +++ b/ext/reflection/tests/bug74949.phpt @@ -14,7 +14,7 @@ echo $r, "\n"; try { echo $r->getPrototype(); } catch (Exception $e) { - echo $e->getMessage(), "\n"; + echo $e->getMessage(), "\n"; } ?> --EXPECT-- diff --git a/ext/reflection/tests/closures_001.phpt b/ext/reflection/tests/closures_001.phpt index c79f20f79c..57c1b4e3f6 100644 --- a/ext/reflection/tests/closures_001.phpt +++ b/ext/reflection/tests/closures_001.phpt @@ -1,6 +1,6 @@ --TEST-- Reflection on closures ---FILE-- +--FILE-- <?php $closure = function($a, $b = 0) { }; diff --git a/ext/reflection/tests/closures_002.phpt b/ext/reflection/tests/closures_002.phpt index 65eb5c86f7..ed973b56c1 100644 --- a/ext/reflection/tests/closures_002.phpt +++ b/ext/reflection/tests/closures_002.phpt @@ -1,6 +1,6 @@ --TEST-- Reflection on invokable objects ---FILE-- +--FILE-- <?php class Test { diff --git a/ext/reflection/tests/closures_003.phpt b/ext/reflection/tests/closures_003.phpt index 6e8dc71fcb..57245cacde 100644 --- a/ext/reflection/tests/closures_003.phpt +++ b/ext/reflection/tests/closures_003.phpt @@ -1,6 +1,6 @@ --TEST-- Reflection on closures: Segfaults with getParameters() and getDeclaringFunction() ---FILE-- +--FILE-- <?php $closure = function($a, $b = 0) { }; diff --git a/ext/reflection/tests/closures_003_v1.phpt b/ext/reflection/tests/closures_003_v1.phpt index c67d9571e1..cf853a00fd 100644 --- a/ext/reflection/tests/closures_003_v1.phpt +++ b/ext/reflection/tests/closures_003_v1.phpt @@ -1,6 +1,6 @@ --TEST-- Reflection on closures: Segfaults with getParameters() and getDeclaringFunction() ---FILE-- +--FILE-- <?php $closure = function($a, $b = 0) { }; diff --git a/ext/reflection/tests/closures_004.phpt b/ext/reflection/tests/closures_004.phpt index a09447bc05..e2b52c5429 100644 --- a/ext/reflection/tests/closures_004.phpt +++ b/ext/reflection/tests/closures_004.phpt @@ -1,6 +1,6 @@ --TEST-- Reflection on closures: Segfault with getClosure() on closure itself ---FILE-- +--FILE-- <?php $closure = function() { echo "Invoked!\n"; }; diff --git a/ext/reflection/tests/property_exists.phpt b/ext/reflection/tests/property_exists.phpt index c74b775bb7..d7ecefb775 100644 --- a/ext/reflection/tests/property_exists.phpt +++ b/ext/reflection/tests/property_exists.phpt @@ -8,15 +8,15 @@ class A public $a = 1; protected $b = 2; private $c = 3; - + public $empty; public $init = 1; - + function __toString() { return 'obj(' . get_class($this) . ')'; } - + static function test($oc, $props) { echo '===' . __CLASS__ . "===\n"; @@ -30,7 +30,7 @@ class A class B extends A { private $c = 4; - + static function test($oc, $props) { echo '===' . __CLASS__ . "===\n"; @@ -44,7 +44,7 @@ class B extends A class C extends B { private $d = 5; - + static function test($oc, $props) { echo '===' . __CLASS__ . "===\n"; diff --git a/ext/reflection/tests/static_properties_002.phpt b/ext/reflection/tests/static_properties_002.phpt index 204c5e0e15..0e3baa9530 100644 --- a/ext/reflection/tests/static_properties_002.phpt +++ b/ext/reflection/tests/static_properties_002.phpt @@ -5,11 +5,11 @@ Reflection and inheriting static properties class base { static protected $prop = 2; - + static function show() { echo __METHOD__ . '(' . self::$prop . ")\n"; } - + static function inc() { base::$prop++; echo __METHOD__ . "()\n"; @@ -18,7 +18,7 @@ class base { class derived extends base { static public $prop = 2; - + static function show() { echo __METHOD__ . '(' . self::$prop . ")\n"; } diff --git a/ext/reflection/tests/traits002.phpt b/ext/reflection/tests/traits002.phpt index b55b288aa0..3a4b294961 100644 --- a/ext/reflection/tests/traits002.phpt +++ b/ext/reflection/tests/traits002.phpt @@ -7,7 +7,7 @@ abstract class foo { } trait bar { - + } reflectionclass::export('foo'); diff --git a/ext/reflection/tests/traits003.phpt b/ext/reflection/tests/traits003.phpt index c569a8e723..7f87859908 100644 --- a/ext/reflection/tests/traits003.phpt +++ b/ext/reflection/tests/traits003.phpt @@ -7,11 +7,11 @@ abstract class foo { } trait bar { - + } final class baz { - + } $x = new ReflectionClass('foo'); |