Annotation of embedaddon/php/ext/standard/tests/class_object/method_exists_variation_003.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test method_exists() function : variation - Case sensitivity
                      3: --FILE--
                      4: <?php
                      5: /* Prototype  : proto bool method_exists(object object, string method)
                      6:  * Description: Checks if the class method exists 
                      7:  * Source code: Zend/zend_builtin_functions.c
                      8:  * Alias to functions: 
                      9:  */
                     10: 
                     11: echo "*** Testing method_exists() : variation ***\n";
                     12: 
                     13: Class caseSensitivityTest {
                     14:        public function myMethod() {}
                     15: }
                     16: 
                     17: var_dump(method_exists(new casesensitivitytest, 'myMetHOD'));
                     18: var_dump(method_exists('casesensiTivitytest', 'myMetHOD'));
                     19: 
                     20: echo "Done";
                     21: ?>
                     22: --EXPECTF--
                     23: *** Testing method_exists() : variation ***
                     24: bool(true)
                     25: bool(true)
                     26: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>