blob: d5835b0b8747f261c3c4b5ddd05b8f951f1e4476 (
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
|