diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-15 04:33:09 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-15 04:33:09 +0200 |
commit | d679f02295ea079338f029b7f5f4cb65b37f190c (patch) | |
tree | 53c519e1f829913a54d9dcea004721a3714cea26 /ext/reflection | |
parent | e84662c35cffaa95ead4322bfe9d61815c185722 (diff) | |
download | php-git-d679f02295ea079338f029b7f5f4cb65b37f190c.tar.gz |
Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
Diffstat (limited to 'ext/reflection')
53 files changed, 28 insertions, 67 deletions
diff --git a/ext/reflection/tests/007.phpt b/ext/reflection/tests/007.phpt index 2b4f3df43f..8babf24282 100644 --- a/ext/reflection/tests/007.phpt +++ b/ext/reflection/tests/007.phpt @@ -91,7 +91,6 @@ test('WithCtorWithArgs'); ===DONE=== <?php exit(0); ?> --EXPECTF-- - ====>Class_does_not_exist {closure}(Class_does_not_exist) string(41) "Class Class_does_not_exist does not exist" diff --git a/ext/reflection/tests/ReflectionClass_constructor_002.phpt b/ext/reflection/tests/ReflectionClass_constructor_002.phpt index 64c299592d..c463bb72c1 100644 --- a/ext/reflection/tests/ReflectionClass_constructor_002.phpt +++ b/ext/reflection/tests/ReflectionClass_constructor_002.phpt @@ -46,7 +46,6 @@ try { ?> --EXPECTF-- - Warning: ReflectionClass::__construct() expects exactly 1 parameter, 0 given in %s on line 3 object(ReflectionClass)#%d (1) { ["name"]=> @@ -64,4 +63,4 @@ object(ReflectionClass)#%d (1) { ["name"]=> string(0) "" } -Class X does not exist
\ No newline at end of file +Class X does not exist diff --git a/ext/reflection/tests/ReflectionClass_export_basic1.phpt b/ext/reflection/tests/ReflectionClass_export_basic1.phpt index 83c514adab..abfa41f3d7 100644 --- a/ext/reflection/tests/ReflectionClass_export_basic1.phpt +++ b/ext/reflection/tests/ReflectionClass_export_basic1.phpt @@ -59,4 +59,4 @@ Class [ <user> class C extends A ] { } } } -}
\ No newline at end of file +} diff --git a/ext/reflection/tests/ReflectionClass_export_basic2.phpt b/ext/reflection/tests/ReflectionClass_export_basic2.phpt index b6644883ee..5699529b3d 100644 --- a/ext/reflection/tests/ReflectionClass_export_basic2.phpt +++ b/ext/reflection/tests/ReflectionClass_export_basic2.phpt @@ -51,4 +51,4 @@ Class [ <user> class d extends c ] { - Methods [0] { } -}
\ No newline at end of file +} diff --git a/ext/reflection/tests/ReflectionClass_getConstant_error.phpt b/ext/reflection/tests/ReflectionClass_getConstant_error.phpt index 907d6d8b7a..5260e719a3 100644 --- a/ext/reflection/tests/ReflectionClass_getConstant_error.phpt +++ b/ext/reflection/tests/ReflectionClass_getConstant_error.phpt @@ -34,4 +34,4 @@ Warning: ReflectionClass::getConstant() expects parameter 1 to be string, array NULL Warning: ReflectionClass::getConstant() expects parameter 1 to be string, object given in %s on line 15 -NULL
\ No newline at end of file +NULL diff --git a/ext/reflection/tests/ReflectionClass_getDocComment_001.phpt b/ext/reflection/tests/ReflectionClass_getDocComment_001.phpt index 31e0e8e58b..9171a8dd25 100644 --- a/ext/reflection/tests/ReflectionClass_getDocComment_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getDocComment_001.phpt @@ -56,8 +56,6 @@ foreach ($classes as $class) { ?> --EXPECTF-- - - ---> Doc comment for class A: string(%d) "/** @@ -97,4 +95,4 @@ string(27) "/** ** Doc comment for G */" ---> Doc comment for class I: string(%d) "/** * Interface doc comment - */"
\ No newline at end of file + */" diff --git a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt index f70e779e9f..1eb084214b 100644 --- a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt @@ -71,4 +71,4 @@ Warning: ReflectionClass::getMethod() expects parameter 1 to be string, array gi NULL Warning: ReflectionClass::getMethod() expects parameter 1 to be string, object given in %s on line 44 -NULL
\ No newline at end of file +NULL diff --git a/ext/reflection/tests/ReflectionClass_getNamespaceName.phpt b/ext/reflection/tests/ReflectionClass_getNamespaceName.phpt index 1c46e0656b..dceb18f7c5 100644 --- a/ext/reflection/tests/ReflectionClass_getNamespaceName.phpt +++ b/ext/reflection/tests/ReflectionClass_getNamespaceName.phpt @@ -27,4 +27,3 @@ bool(true) string(7) "A\B\Foo" string(3) "A\B" string(3) "Foo" - diff --git a/ext/reflection/tests/ReflectionClass_getParentClass.phpt b/ext/reflection/tests/ReflectionClass_getParentClass.phpt index 46884ca2ba..382948d3d3 100644 --- a/ext/reflection/tests/ReflectionClass_getParentClass.phpt +++ b/ext/reflection/tests/ReflectionClass_getParentClass.phpt @@ -13,7 +13,6 @@ class Bar extends Foo {} $rc1 = new ReflectionClass("Bar"); var_dump($rc1->getParentClass()); ?> - --EXPECTF-- object(ReflectionClass)#%d (1) { ["name"]=> diff --git a/ext/reflection/tests/ReflectionClass_getProperties_003.phpt b/ext/reflection/tests/ReflectionClass_getProperties_003.phpt index 229e828056..fe3792a30f 100644 --- a/ext/reflection/tests/ReflectionClass_getProperties_003.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperties_003.phpt @@ -186,4 +186,4 @@ Private or static properties:array(6) { ["class"]=> string(1) "C" } -}
\ No newline at end of file +} diff --git a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt index cf4aca51ea..68522e097a 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt @@ -69,4 +69,4 @@ Warning: ReflectionClass::getProperty() expects parameter 1 to be string, array NULL Warning: ReflectionClass::getProperty() expects parameter 1 to be string, object given in %s on line 44 -NULL
\ No newline at end of file +NULL diff --git a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt index 36b4744d8c..52fa378eb6 100644 --- a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt @@ -39,7 +39,6 @@ try { ?> --EXPECTF-- - Warning: ReflectionClass::getStaticPropertyValue() expects at most 2 parameters, 3 given in %s on line 8 NULL @@ -49,4 +48,4 @@ Class C does not have a property named string(3) "def" Warning: ReflectionClass::getStaticPropertyValue() expects parameter 1 to be string, array given in %s on line 28 -NULL
\ No newline at end of file +NULL diff --git a/ext/reflection/tests/ReflectionClass_hasConstant_001.phpt b/ext/reflection/tests/ReflectionClass_hasConstant_001.phpt index d26fad591d..84e334ba19 100644 --- a/ext/reflection/tests/ReflectionClass_hasConstant_001.phpt +++ b/ext/reflection/tests/ReflectionClass_hasConstant_001.phpt @@ -33,4 +33,4 @@ Check existing constant: bool(true) Check existing constant, different case: bool(false) Check absent constant: bool(false) Check inherited constant: bool(true) -Check absent constant: bool(false)
\ No newline at end of file +Check absent constant: bool(false) diff --git a/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt b/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt index a0a76f024a..14c847401d 100644 --- a/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt +++ b/ext/reflection/tests/ReflectionClass_hasConstant_002.phpt @@ -37,4 +37,4 @@ Warning: ReflectionClass::hasConstant() expects parameter 1 to be string, array NULL Warning: ReflectionClass::hasConstant() expects parameter 1 to be string, object given in %s on line 15 -NULL
\ No newline at end of file +NULL diff --git a/ext/reflection/tests/ReflectionClass_hasMethod_001.phpt b/ext/reflection/tests/ReflectionClass_hasMethod_001.phpt index b9eb013522..dec76febe1 100644 --- a/ext/reflection/tests/ReflectionClass_hasMethod_001.phpt +++ b/ext/reflection/tests/ReflectionClass_hasMethod_001.phpt @@ -72,4 +72,4 @@ Reflecting on class subprivf: --> Check for s(): bool(true) --> Check for F(): bool(true) --> Check for doesntExist(): bool(false) -
\ No newline at end of file + diff --git a/ext/reflection/tests/ReflectionClass_hasProperty_001.phpt b/ext/reflection/tests/ReflectionClass_hasProperty_001.phpt index a644b2e641..a6c3753a78 100644 --- a/ext/reflection/tests/ReflectionClass_hasProperty_001.phpt +++ b/ext/reflection/tests/ReflectionClass_hasProperty_001.phpt @@ -72,4 +72,3 @@ Reflecting on class subprivf: --> Check for a: bool(false) --> Check for A: bool(false) --> Check for doesntExist: bool(false) - diff --git a/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt b/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt index 8a0098ad8d..10a86d9136 100644 --- a/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt +++ b/ext/reflection/tests/ReflectionClass_isIterateable_001.phpt @@ -89,4 +89,4 @@ Test static invocation: Fatal error: Uncaught Error: Non-static method ReflectionClass::isIterateable() cannot be called statically in %s:43 Stack trace: #0 {main} - thrown in %s on line 43
\ No newline at end of file + thrown in %s on line 43 diff --git a/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt b/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt index 083b277131..368ea7d7ec 100644 --- a/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt +++ b/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt @@ -36,7 +36,6 @@ try { } ?> --EXPECTF-- - Test bad arguments: Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 0 given in %s on line 7 @@ -46,4 +45,4 @@ Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given in NULL Parameter one must either be a string or a ReflectionClass object Class ThisClassDoesNotExist does not exist -Parameter one must either be a string or a ReflectionClass object
\ No newline at end of file +Parameter one must either be a string or a ReflectionClass object diff --git a/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt b/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt index 2754b4c8e3..bd27dfc173 100644 --- a/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt +++ b/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt @@ -16,7 +16,6 @@ var_dump($a); ?> --EXPECTF-- - Fatal error: Uncaught TypeError: Argument 1 passed to ReflectionClass::newInstanceArgs() must be of the type array, string given in %s:8 Stack trace: #0 %s(%d): ReflectionClass->newInstanceArgs('x') diff --git a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt index 3244ec30b9..14e8382e41 100644 --- a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt +++ b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt @@ -44,7 +44,6 @@ try { ?> --EXPECTF-- - Warning: ReflectionClass::setStaticPropertyValue() expects exactly 2 parameters, 3 given in %s on line 8 NULL @@ -57,4 +56,4 @@ Class C does not have a property named Class C does not have a property named 1.5 Warning: ReflectionClass::setStaticPropertyValue() expects parameter 1 to be string, array given in %s on line 33 -NULL
\ No newline at end of file +NULL diff --git a/ext/reflection/tests/ReflectionClass_toString_002.phpt b/ext/reflection/tests/ReflectionClass_toString_002.phpt index e9aaa502c6..5395ae66b9 100644 --- a/ext/reflection/tests/ReflectionClass_toString_002.phpt +++ b/ext/reflection/tests/ReflectionClass_toString_002.phpt @@ -25,8 +25,6 @@ foreach (array('A', 'B', 'C', 'D') as $class) { ?> --EXPECTF-- - - ----( Reflection class A: )---- Class [ <user> class A ] { @@ %s 2-4 @@ -120,4 +118,4 @@ Class [ <user> class D extends C ] { @@ %s 12 - 12 } } -}
\ No newline at end of file +} diff --git a/ext/reflection/tests/ReflectionClass_toString_003.phpt b/ext/reflection/tests/ReflectionClass_toString_003.phpt index ce5afb09ed..1ce1fddf91 100644 --- a/ext/reflection/tests/ReflectionClass_toString_003.phpt +++ b/ext/reflection/tests/ReflectionClass_toString_003.phpt @@ -25,8 +25,6 @@ foreach (array('A', 'B', 'C', 'D') as $class) { ?> --EXPECTF-- - - ----( Reflection class A: )---- Class [ <user> class A ] { @@ %s 2-4 diff --git a/ext/reflection/tests/ReflectionFunction_001.phpt b/ext/reflection/tests/ReflectionFunction_001.phpt index 7c592dc612..6785e5d0b1 100644 --- a/ext/reflection/tests/ReflectionFunction_001.phpt +++ b/ext/reflection/tests/ReflectionFunction_001.phpt @@ -64,4 +64,4 @@ bool(false) bool(false) bool(false) array(0) { -}
\ No newline at end of file +} diff --git a/ext/reflection/tests/ReflectionFunction_getDocComment.001.phpt b/ext/reflection/tests/ReflectionFunction_getDocComment.001.phpt index 2d5bb928b2..03cec2ee79 100644 --- a/ext/reflection/tests/ReflectionFunction_getDocComment.001.phpt +++ b/ext/reflection/tests/ReflectionFunction_getDocComment.001.phpt @@ -40,4 +40,3 @@ string(%d) "/** */" bool(false) bool(false) - diff --git a/ext/reflection/tests/ReflectionFunction_getExtension.phpt b/ext/reflection/tests/ReflectionFunction_getExtension.phpt index 18345892c7..4abc11d8a9 100644 --- a/ext/reflection/tests/ReflectionFunction_getExtension.phpt +++ b/ext/reflection/tests/ReflectionFunction_getExtension.phpt @@ -16,4 +16,3 @@ object(ReflectionExtension)#%i (1) { string(8) "standard" } NULL - diff --git a/ext/reflection/tests/ReflectionFunction_getExtensionName.phpt b/ext/reflection/tests/ReflectionFunction_getExtensionName.phpt index 7553a50b34..254a182452 100644 --- a/ext/reflection/tests/ReflectionFunction_getExtensionName.phpt +++ b/ext/reflection/tests/ReflectionFunction_getExtensionName.phpt @@ -13,4 +13,3 @@ var_dump($function->getExtensionName()); --EXPECT-- string(8) "standard" bool(false) - diff --git a/ext/reflection/tests/ReflectionFunction_getFileName.001.phpt b/ext/reflection/tests/ReflectionFunction_getFileName.001.phpt index 5dbe7b54b7..d27fadec07 100644 --- a/ext/reflection/tests/ReflectionFunction_getFileName.001.phpt +++ b/ext/reflection/tests/ReflectionFunction_getFileName.001.phpt @@ -15,4 +15,4 @@ var_dump($funcInfo->getFileName()); --EXPECTF-- %sincluded4.inc %d -string(%d) "%sincluded4.inc"
\ No newline at end of file +string(%d) "%sincluded4.inc" diff --git a/ext/reflection/tests/ReflectionFunction_getFileName.002.phpt b/ext/reflection/tests/ReflectionFunction_getFileName.002.phpt index 455935e380..cd75418584 100644 --- a/ext/reflection/tests/ReflectionFunction_getFileName.002.phpt +++ b/ext/reflection/tests/ReflectionFunction_getFileName.002.phpt @@ -36,4 +36,3 @@ dumpFuncInfo('extract'); string(%d) "%sReflectionFunction_getFileName.002.php" string(%d) "%sReflectionFunction_getFileName.002.php" bool(false) - diff --git a/ext/reflection/tests/ReflectionFunction_getNamespaceName.phpt b/ext/reflection/tests/ReflectionFunction_getNamespaceName.phpt index 08b3dddabd..0a6ac9f11d 100644 --- a/ext/reflection/tests/ReflectionFunction_getNamespaceName.phpt +++ b/ext/reflection/tests/ReflectionFunction_getNamespaceName.phpt @@ -26,4 +26,3 @@ bool(true) string(7) "A\B\foo" string(3) "A\B" string(3) "foo" - diff --git a/ext/reflection/tests/ReflectionMethod_basic1.phpt b/ext/reflection/tests/ReflectionMethod_basic1.phpt index d403d2d2be..8eb970babb 100644 --- a/ext/reflection/tests/ReflectionMethod_basic1.phpt +++ b/ext/reflection/tests/ReflectionMethod_basic1.phpt @@ -294,5 +294,3 @@ isDestructor(): bool(true) ********************************** - - diff --git a/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt b/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt index f7beea67a6..5c980536b9 100644 --- a/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt +++ b/ext/reflection/tests/ReflectionMethod_constructor_error1.phpt @@ -100,4 +100,3 @@ Stack trace: #0 %s ReflectionMethod->__construct('TestCla::foo') #1 {main} Class and Method in same string (ok): - diff --git a/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt b/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt index bb0543d098..723ab00f84 100644 --- a/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt +++ b/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt @@ -59,4 +59,3 @@ Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 3 given Ok - Class InvalidClassName does not exist Ok - The parameter class is expected to be either a string or an object Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 2 given - diff --git a/ext/reflection/tests/ReflectionMethod_getDeclaringClass_basic.phpt b/ext/reflection/tests/ReflectionMethod_getDeclaringClass_basic.phpt index 8e34d61731..d34c7f61a4 100644 --- a/ext/reflection/tests/ReflectionMethod_getDeclaringClass_basic.phpt +++ b/ext/reflection/tests/ReflectionMethod_getDeclaringClass_basic.phpt @@ -27,4 +27,3 @@ object(ReflectionClass)#%d (1) { ["name"]=> string(1) "B" } - diff --git a/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt b/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt index 2544b0e7ec..f999b72812 100644 --- a/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt +++ b/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt @@ -64,8 +64,6 @@ foreach (array('A', 'B') as $class) { } ?> --EXPECTF-- - - ---> Doc comment for A::f(): string(%d) "/** * My Doc Comment for A::f diff --git a/ext/reflection/tests/ReflectionObject___toString_basic1.phpt b/ext/reflection/tests/ReflectionObject___toString_basic1.phpt index fefa220c9e..43210ea686 100644 --- a/ext/reflection/tests/ReflectionObject___toString_basic1.phpt +++ b/ext/reflection/tests/ReflectionObject___toString_basic1.phpt @@ -33,4 +33,4 @@ Object of class [ <user> class Foo ] { - Methods [0] { } -}
\ No newline at end of file +} diff --git a/ext/reflection/tests/ReflectionObject___toString_basic2.phpt b/ext/reflection/tests/ReflectionObject___toString_basic2.phpt index 332386afd3..970d07b432 100644 --- a/ext/reflection/tests/ReflectionObject___toString_basic2.phpt +++ b/ext/reflection/tests/ReflectionObject___toString_basic2.phpt @@ -36,4 +36,4 @@ Object of class [ <user> class Foo ] { - Methods [0] { } -}
\ No newline at end of file +} diff --git a/ext/reflection/tests/ReflectionObject_export_basic1.phpt b/ext/reflection/tests/ReflectionObject_export_basic1.phpt index f7dfef8670..2fbe6fd779 100644 --- a/ext/reflection/tests/ReflectionObject_export_basic1.phpt +++ b/ext/reflection/tests/ReflectionObject_export_basic1.phpt @@ -33,4 +33,4 @@ Object of class [ <user> class Foo ] { - Methods [0] { } -}
\ No newline at end of file +} diff --git a/ext/reflection/tests/ReflectionObject_export_basic2.phpt b/ext/reflection/tests/ReflectionObject_export_basic2.phpt index 277f06eaf5..652a5556cd 100644 --- a/ext/reflection/tests/ReflectionObject_export_basic2.phpt +++ b/ext/reflection/tests/ReflectionObject_export_basic2.phpt @@ -36,4 +36,4 @@ Object of class [ <user> class Foo ] { - Methods [0] { } -}
\ No newline at end of file +} diff --git a/ext/reflection/tests/ReflectionObject_export_basic3.phpt b/ext/reflection/tests/ReflectionObject_export_basic3.phpt index dfd3f2e803..c4afc22d64 100644 --- a/ext/reflection/tests/ReflectionObject_export_basic3.phpt +++ b/ext/reflection/tests/ReflectionObject_export_basic3.phpt @@ -35,4 +35,3 @@ Object of class [ <user> class D extends C ] { - Methods [0] { } } - diff --git a/ext/reflection/tests/ReflectionObject_getName_basic.phpt b/ext/reflection/tests/ReflectionObject_getName_basic.phpt index db0cbfb08d..68cea6a1cd 100644 --- a/ext/reflection/tests/ReflectionObject_getName_basic.phpt +++ b/ext/reflection/tests/ReflectionObject_getName_basic.phpt @@ -18,10 +18,8 @@ var_dump($r3->getName()); ?> --EXPECTF-- - Warning: ReflectionObject::__construct() expects exactly 1 parameter, 0 given in %s on line 2 string(0) "" string(8) "stdClass" string(1) "C" string(16) "ReflectionObject" - diff --git a/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt b/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt index 2fb8cb0870..f05197ebaf 100644 --- a/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt +++ b/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt @@ -45,4 +45,4 @@ Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given in NULL Parameter one must either be a string or a ReflectionClass object Class ThisClassDoesNotExist does not exist -Parameter one must either be a string or a ReflectionClass object
\ No newline at end of file +Parameter one must either be a string or a ReflectionClass object diff --git a/ext/reflection/tests/ReflectionParameter_001.phpt b/ext/reflection/tests/ReflectionParameter_001.phpt index 71dc69ca4e..822da2fe9a 100644 --- a/ext/reflection/tests/ReflectionParameter_001.phpt +++ b/ext/reflection/tests/ReflectionParameter_001.phpt @@ -77,4 +77,4 @@ Parameters from noArgs: array(0) { } -done
\ No newline at end of file +done diff --git a/ext/reflection/tests/ReflectionParameter_002.phpt b/ext/reflection/tests/ReflectionParameter_002.phpt index 349e6f0ca9..571edac7a9 100644 --- a/ext/reflection/tests/ReflectionParameter_002.phpt +++ b/ext/reflection/tests/ReflectionParameter_002.phpt @@ -77,4 +77,4 @@ object(ReflectionParameter)#%i (1) { } This param is passed by reference -done
\ No newline at end of file +done diff --git a/ext/reflection/tests/ReflectionParameter_export_error.phpt b/ext/reflection/tests/ReflectionParameter_export_error.phpt index 31acfe12ae..e3d2bac0fc 100644 --- a/ext/reflection/tests/ReflectionParameter_export_error.phpt +++ b/ext/reflection/tests/ReflectionParameter_export_error.phpt @@ -14,7 +14,6 @@ foreach($reflect->getParameters() as $key => $value) { ?> ==DONE== --EXPECTF-- - Warning: ReflectionParameter::export() expects at least 2 parameters, 0 given in %s.php on line %d Warning: ReflectionParameter::export() expects at least 2 parameters, 0 given in %s.php on line %d diff --git a/ext/reflection/tests/ReflectionParameter_export_error3.phpt b/ext/reflection/tests/ReflectionParameter_export_error3.phpt index 4e71f55d45..f5223c35fe 100644 --- a/ext/reflection/tests/ReflectionParameter_export_error3.phpt +++ b/ext/reflection/tests/ReflectionParameter_export_error3.phpt @@ -13,7 +13,6 @@ foreach($params as $key => $value) { ReflectionParameter::export('ReflectionParameterTest', 'incorrect_parameter'); } --EXPECTF-- - Fatal error: Uncaught ReflectionException: The parameter specified by its name could not be found in %s.php:%d Stack trace: #0 [internal function]: ReflectionParameter->__construct('ReflectionParam...', 'incorrect_param...') diff --git a/ext/reflection/tests/ReflectionProperty_basic1.phpt b/ext/reflection/tests/ReflectionProperty_basic1.phpt index 63f9542015..18eb71fa10 100644 --- a/ext/reflection/tests/ReflectionProperty_basic1.phpt +++ b/ext/reflection/tests/ReflectionProperty_basic1.phpt @@ -156,5 +156,3 @@ isStatic(): bool(false) ********************************** - - diff --git a/ext/reflection/tests/ReflectionProperty_constructor_variation1.phpt b/ext/reflection/tests/ReflectionProperty_constructor_variation1.phpt index d744fc8995..6f39f9db6c 100644 --- a/ext/reflection/tests/ReflectionProperty_constructor_variation1.phpt +++ b/ext/reflection/tests/ReflectionProperty_constructor_variation1.phpt @@ -55,4 +55,4 @@ Property D::$p does not exist Property D::$p does not exist --> Reflect inherited private from subclass: -Property D::$p does not exist
\ No newline at end of file +Property D::$p does not exist diff --git a/ext/reflection/tests/ReflectionProperty_getDocComment_basic.phpt b/ext/reflection/tests/ReflectionProperty_getDocComment_basic.phpt index 8491f32597..1dc7c9c727 100644 --- a/ext/reflection/tests/ReflectionProperty_getDocComment_basic.phpt +++ b/ext/reflection/tests/ReflectionProperty_getDocComment_basic.phpt @@ -42,7 +42,6 @@ foreach(array('A', 'B') as $class) { ?> --EXPECTF-- - ---> Doc comment for A::$a: string(%d) "/** * My Doc Comment for $a diff --git a/ext/reflection/tests/ReflectionType_002.phpt b/ext/reflection/tests/ReflectionType_002.phpt index 501dfc8d89..31d396f773 100644 --- a/ext/reflection/tests/ReflectionType_002.phpt +++ b/ext/reflection/tests/ReflectionType_002.phpt @@ -10,8 +10,6 @@ $rt = $rp->getType(); $rrt = $rm->getReturnType(); unset($rm, $rp); var_dump($rt->getName(), $rrt->getName()); - --EXPECT-- string(4) "Test" string(5) "Test2" - diff --git a/ext/reflection/tests/bug46064_2.phpt b/ext/reflection/tests/bug46064_2.phpt index 6ac72bbd27..65afa836b7 100644 --- a/ext/reflection/tests/bug46064_2.phpt +++ b/ext/reflection/tests/bug46064_2.phpt @@ -71,4 +71,4 @@ array(2) { string(4) "test" } } -===DONE===
\ No newline at end of file +===DONE=== diff --git a/ext/reflection/tests/bug67068.phpt b/ext/reflection/tests/bug67068.phpt index 35c1b1674f..3c363561d3 100644 --- a/ext/reflection/tests/bug67068.phpt +++ b/ext/reflection/tests/bug67068.phpt @@ -15,4 +15,4 @@ $closureReflector = new \ReflectionFunction($closure); var_dump($closureReflector->isClosure()); ?> --EXPECT-- -bool(true)
\ No newline at end of file +bool(true) diff --git a/ext/reflection/tests/traits004.phpt b/ext/reflection/tests/traits004.phpt index ca0314d0df..d975a52726 100644 --- a/ext/reflection/tests/traits004.phpt +++ b/ext/reflection/tests/traits004.phpt @@ -55,4 +55,3 @@ array(2) { string(2) "T2" } } - diff --git a/ext/reflection/tests/traits005.phpt b/ext/reflection/tests/traits005.phpt index 4cfa6c04f0..fbc917eafc 100644 --- a/ext/reflection/tests/traits005.phpt +++ b/ext/reflection/tests/traits005.phpt @@ -38,4 +38,3 @@ array(2) { ["a2"]=> string(6) "T1::m2" } - |