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