From: Felipe Pena Date: Fri, 22 Aug 2008 13:40:54 +0000 (+0000) Subject: - New tests X-Git-Tag: php-5.2.7RC1~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=500d715ed3025962736f2859cadf7bbaf9e3b5ff;p=php - New tests --- diff --git a/Zend/tests/get_class_methods_001.phpt b/Zend/tests/get_class_methods_001.phpt new file mode 100644 index 0000000000..277ea2cf5a --- /dev/null +++ b/Zend/tests/get_class_methods_001.phpt @@ -0,0 +1,55 @@ +--TEST-- +get_class_methods(): Testing scope +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + string(1) "a" +} +array(2) { + [0]=> + string(4) "test" + [1]=> + string(1) "a" +} +array(2) { + [0]=> + string(1) "a" + [1]=> + string(1) "c" +} +array(4) { + [0]=> + string(2) "bb" + [1]=> + string(4) "test" + [2]=> + string(1) "a" + [3]=> + string(1) "c" +} diff --git a/Zend/tests/get_class_methods_002.phpt b/Zend/tests/get_class_methods_002.phpt new file mode 100644 index 0000000000..27da6e8d9b --- /dev/null +++ b/Zend/tests/get_class_methods_002.phpt @@ -0,0 +1,43 @@ +--TEST-- +get_class_methods(): Testing with interface +--FILE-- + +--EXPECTF-- +Strict Standards: Redefining already defined constructor for class B in %s on line %d +array(2) { + [0]=> + string(1) "a" + [1]=> + string(1) "b" +} +array(4) { + [0]=> + string(1) "a" + [1]=> + string(1) "b" + [2]=> + string(11) "__construct" + [3]=> + string(10) "__destruct" +} diff --git a/Zend/tests/get_class_methods_003.phpt b/Zend/tests/get_class_methods_003.phpt new file mode 100644 index 0000000000..bbb758625b --- /dev/null +++ b/Zend/tests/get_class_methods_003.phpt @@ -0,0 +1,78 @@ +--TEST-- +get_class_methods(): Testing scope +--FILE-- + +--EXPECT-- +array(3) { + [0]=> + string(2) "aa" + [1]=> + string(2) "bb" + [2]=> + string(2) "cc" +} +array(9) { + [0]=> + string(2) "aa" + [1]=> + string(2) "bb" + [2]=> + string(2) "cc" + [3]=> + string(11) "__construct" + [4]=> + string(10) "__destruct" + [5]=> + string(1) "a" + [6]=> + string(1) "b" + [7]=> + string(8) "static_a" + [8]=> + string(8) "static_b" +} +array(4) { + [0]=> + string(1) "a" + [1]=> + string(1) "b" + [2]=> + string(8) "static_a" + [3]=> + string(8) "static_b" +}