Annotation of embedaddon/php/ext/standard/tests/class_object/get_class_methods_variation_002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test get_class_methods() function : usage variations - case sensitivity
3: --FILE--
4: <?php
5: /* Prototype : proto array get_class_methods(mixed class)
6: * Description: Returns an array of method names for class or class instance.
7: * Source code: Zend/zend_builtin_functions.c
8: * Alias to functions:
9: */
10:
11: echo "*** Testing get_class_methods() : usage variations ***\n";
12:
13: class caseSensitivityTest {
14: function MyMeThOd() {}
15: }
16:
17: var_dump( get_class_methods('CasesensitivitytesT') );
18:
19: echo "Done";
20: ?>
21: --EXPECTF--
22: *** Testing get_class_methods() : usage variations ***
23: array(1) {
24: [0]=>
25: string(8) "MyMeThOd"
26: }
27: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>