summaryrefslogtreecommitdiff
path: root/ext/standard/tests/class_object/method_exists_variation_003.phpt
blob: 7357aaf6c03cf3fc6822daafb2d0e858c126eda5 (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";
?>
--EXPECTF--
*** Testing method_exists() : variation ***
bool(true)
bool(true)
Done