1--TEST-- 2Test 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 11echo "*** Testing method_exists() : variation ***\n"; 12 13Class caseSensitivityTest { 14 public function myMethod() {} 15} 16 17var_dump(method_exists(new casesensitivitytest, 'myMetHOD')); 18var_dump(method_exists('casesensiTivitytest', 'myMetHOD')); 19 20echo "Done"; 21?> 22--EXPECT-- 23*** Testing method_exists() : variation *** 24bool(true) 25bool(true) 26Done 27