From: Robin Fernandes Date: Fri, 23 May 2008 21:14:05 +0000 (+0000) Subject: More basic ReflectionClass tests from Dutch TestFest. X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1690 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f684c221c48d556505150c544ffb857681832692;p=php More basic ReflectionClass tests from Dutch TestFest. --- diff --git a/ext/reflection/tests/reflectionClass_getConstructor_basic.phpt b/ext/reflection/tests/reflectionClass_getConstructor_basic.phpt index 1b5b2984f8..16b0aca714 100644 --- a/ext/reflection/tests/reflectionClass_getConstructor_basic.phpt +++ b/ext/reflection/tests/reflectionClass_getConstructor_basic.phpt @@ -1,5 +1,10 @@ --TEST-- ReflectionClass::getConstructor() +--SKIPIF-- + +--CREDITS-- +Michelangelo van Dam +#testfest roosendaal on 2008-05-10 --FILE-- --EXPECTF-- @@ -79,21 +84,4 @@ Constructor of C: C Constructor of D1: __construct Constructor of D2: C No constructor for X -No constructor for Y ---UEXPECTF-- - -Strict Standards: Redefining already defined constructor for class OldAndNewCtor in %s on line 26 - -Strict Standards: %s for class NewAndOldCtor in %s on line 31 -Constructor of NewCtor: __construct -Constructor of ExtendsNewCtor: __construct -Constructor of OldCtor: OldCtor -Constructor of ExtendsOldCtor: OldCtor -Constructor of OldAndNewCtor: __construct -Constructor of NewAndOldCtor: __construct -Constructor of B: B -Constructor of C: C -Constructor of D1: __construct -Constructor of D2: C -No constructor for X -No constructor for Y +No constructor for Y \ No newline at end of file diff --git a/ext/reflection/tests/reflectionClass_getExtensionName_basic.phpt b/ext/reflection/tests/reflectionClass_getExtensionName_basic.phpt new file mode 100644 index 0000000000..5c28bd1b50 --- /dev/null +++ b/ext/reflection/tests/reflectionClass_getExtensionName_basic.phpt @@ -0,0 +1,16 @@ +--TEST-- +ReflectionClass::getExtensionName() method - basic test for getExtensionName() method +--SKIPIF-- + +--CREDITS-- +Rein Velt +#testFest Roosendaal 2008-05-10 +--FILE-- +getExtensionName()) ; +?> +--EXPECT-- +string(3) "dom" +--UEXPECT-- +unicode(3) "dom" \ No newline at end of file diff --git a/ext/reflection/tests/reflectionClass_getExtensionName_variation.phpt b/ext/reflection/tests/reflectionClass_getExtensionName_variation.phpt new file mode 100644 index 0000000000..35372c4f84 --- /dev/null +++ b/ext/reflection/tests/reflectionClass_getExtensionName_variation.phpt @@ -0,0 +1,20 @@ +--TEST-- +ReflectionClass::getExtensionName() method - variation test for getExtensionName() +--SKIPIF-- + +--CREDITS-- +Rein Velt +#testFest Roosendaal 2008-05-10 +--FILE-- +getExtensionName()) ; +?> +--EXPECT-- +bool(false) \ No newline at end of file diff --git a/ext/reflection/tests/reflectionClass_getExtension_basic.phpt b/ext/reflection/tests/reflectionClass_getExtension_basic.phpt new file mode 100644 index 0000000000..432bba0acf --- /dev/null +++ b/ext/reflection/tests/reflectionClass_getExtension_basic.phpt @@ -0,0 +1,22 @@ +--TEST-- +ReflectionClass::getExtension() method - basic test for getExtension() method +--SKIPIF-- + +--CREDITS-- +Rein Velt +#testFest Roosendaal 2008-05-10 +--FILE-- +getExtension()) ; +?> +--EXPECTF-- +object(ReflectionExtension)#%d (1) { + ["name"]=> + string(3) "dom" +} +--UEXPECTF-- +object(ReflectionExtension)#%d (1) { + [u"name"]=> + unicode(3) "dom" +} \ No newline at end of file diff --git a/ext/reflection/tests/reflectionClass_getExtension_variation.phpt b/ext/reflection/tests/reflectionClass_getExtension_variation.phpt new file mode 100644 index 0000000000..f2272777a0 --- /dev/null +++ b/ext/reflection/tests/reflectionClass_getExtension_variation.phpt @@ -0,0 +1,20 @@ +--TEST-- +ReflectionClass::getExtension() method - variation test for getExtension() +--SKIPIF-- + +--CREDITS-- +Rein Velt +#testFest Roosendaal 2008-05-10 +--FILE-- +getExtension()) ; +?> +--EXPECT-- +NULL \ No newline at end of file diff --git a/ext/reflection/tests/reflectionClass_getInterfaceNames_basic.phpt b/ext/reflection/tests/reflectionClass_getInterfaceNames_basic.phpt new file mode 100644 index 0000000000..c13ef3744c --- /dev/null +++ b/ext/reflection/tests/reflectionClass_getInterfaceNames_basic.phpt @@ -0,0 +1,32 @@ +--TEST-- +ReflectionClass::getInterfaceNames() +--SKIPIF-- + +--CREDITS-- +Michelangelo van Dam +#testfest roosendaal on 2008-05-10 +--FILE-- +getInterfaceNames()); +?> +--EXPECT-- +array(2) { + [0]=> + string(3) "Foo" + [1]=> + string(3) "Bar" +} +--UEXPECT-- +array(2) { + [0]=> + unicode(3) "Foo" + [1]=> + unicode(3) "Bar" +} \ No newline at end of file diff --git a/ext/reflection/tests/reflectionClass_getModifiers_basic.phpt b/ext/reflection/tests/reflectionClass_getModifiers_basic.phpt index 5d2592d17e..fad4e318c3 100644 --- a/ext/reflection/tests/reflectionClass_getModifiers_basic.phpt +++ b/ext/reflection/tests/reflectionClass_getModifiers_basic.phpt @@ -1,7 +1,7 @@ --TEST-- ReflectionClass::getModifiers() --SKIPIF-- - + --CREDITS-- Felix De Vliegher --FILE-- diff --git a/ext/reflection/tests/reflectionClass_getParentClass.phpt b/ext/reflection/tests/reflectionClass_getParentClass.phpt index 32c01aeafd..fbdfa0b7ed 100644 --- a/ext/reflection/tests/reflectionClass_getParentClass.phpt +++ b/ext/reflection/tests/reflectionClass_getParentClass.phpt @@ -1,5 +1,7 @@ --TEST-- ReflectionClass::getParentClass() +--SKIPIF-- + --CREDITS-- Michelangelo van Dam #testfest roosendaal on 2008-05-10 diff --git a/ext/reflection/tests/reflectionClass_hasConstant_basic.phpt b/ext/reflection/tests/reflectionClass_hasConstant_basic.phpt index 49570150c7..75d3d30e78 100644 --- a/ext/reflection/tests/reflectionClass_hasConstant_basic.phpt +++ b/ext/reflection/tests/reflectionClass_hasConstant_basic.phpt @@ -1,6 +1,8 @@ --TEST-- ReflectionClass::hasConstant() ---CREDIT-- +--SKIPIF-- + +--CREDITS-- Marc Veldman #testfest roosendaal on 2008-05-10 --FILE-- diff --git a/ext/reflection/tests/reflectionClass_hasMethod_basic.phpt b/ext/reflection/tests/reflectionClass_hasMethod_basic.phpt index 3ef5ac9202..700218951f 100644 --- a/ext/reflection/tests/reflectionClass_hasMethod_basic.phpt +++ b/ext/reflection/tests/reflectionClass_hasMethod_basic.phpt @@ -1,6 +1,8 @@ --TEST-- ReflectionClass::hasMethod() ---CREDIT-- +--SKIPIF-- + +--CREDITS-- Marc Veldman #testfest roosendaal on 2008-05-10 --FILE-- diff --git a/ext/reflection/tests/reflectionClass_hasProperty_basic.phpt b/ext/reflection/tests/reflectionClass_hasProperty_basic.phpt index b3264e01ed..26ca6a4cd5 100644 --- a/ext/reflection/tests/reflectionClass_hasProperty_basic.phpt +++ b/ext/reflection/tests/reflectionClass_hasProperty_basic.phpt @@ -1,6 +1,8 @@ --TEST-- ReflectionClass::hasProperty() ---CREDIT-- +--SKIPIF-- + +--CREDITS-- Marc Veldman #testfest roosendaal on 2008-05-10 --FILE-- diff --git a/ext/reflection/tests/reflectionClass_isAbstract_basic.phpt b/ext/reflection/tests/reflectionClass_isAbstract_basic.phpt new file mode 100644 index 0000000000..7a3d577ef6 --- /dev/null +++ b/ext/reflection/tests/reflectionClass_isAbstract_basic.phpt @@ -0,0 +1,23 @@ +--TEST-- +ReflectionClass::isAbstract() method +--SKIPIF-- + +--CREDITS-- +Felix De Vliegher +#testfest roosendaal on 2008-05-10 +--FILE-- +isAbstract()); +var_dump($abstractClass->isAbstract()); + +?> +--EXPECT-- +bool(false) +bool(true) diff --git a/ext/reflection/tests/reflectionClass_isFinal_basic.phpt b/ext/reflection/tests/reflectionClass_isFinal_basic.phpt new file mode 100644 index 0000000000..efa131724e --- /dev/null +++ b/ext/reflection/tests/reflectionClass_isFinal_basic.phpt @@ -0,0 +1,23 @@ +--TEST-- +ReflectionClass::isFinal() method +--SKIPIF-- + +--CREDITS-- +Felix De Vliegher +#testfest roosendaal on 2008-05-10 +--FILE-- +isFinal()); +var_dump($finalClass->isFinal()); + +?> +--EXPECT-- +bool(false) +bool(true) diff --git a/ext/reflection/tests/reflectionClass_isInterface_basic.phpt b/ext/reflection/tests/reflectionClass_isInterface_basic.phpt index 2870725e83..2e5c6302d8 100644 --- a/ext/reflection/tests/reflectionClass_isInterface_basic.phpt +++ b/ext/reflection/tests/reflectionClass_isInterface_basic.phpt @@ -1,7 +1,7 @@ --TEST-- ReflectionClass::isInterface() method --SKIPIF-- - + --CREDITS-- Felix De Vliegher #testfest roosendaal on 2008-05-10 diff --git a/ext/reflection/tests/reflectionClass_isIterateable_basic.phpt b/ext/reflection/tests/reflectionClass_isIterateable_basic.phpt index 3e1228af25..cfcf799e38 100644 --- a/ext/reflection/tests/reflectionClass_isIterateable_basic.phpt +++ b/ext/reflection/tests/reflectionClass_isIterateable_basic.phpt @@ -1,7 +1,7 @@ --TEST-- ReflectionClass::isIterateable() basic --SKIPIF-- - + --CREDITS-- Felix De Vliegher , Marc Veldman --FILE-- diff --git a/ext/reflection/tests/reflectionClass_isIterateable_variation1.phpt b/ext/reflection/tests/reflectionClass_isIterateable_variation1.phpt index 6d737bb893..654a37ec99 100644 --- a/ext/reflection/tests/reflectionClass_isIterateable_variation1.phpt +++ b/ext/reflection/tests/reflectionClass_isIterateable_variation1.phpt @@ -1,7 +1,7 @@ --TEST-- ReflectionClass::isIterateable() variations --SKIPIF-- - + --CREDITS-- Felix De Vliegher --FILE--