summaryrefslogtreecommitdiff
path: root/ext/standard/tests/class_object/method_exists_variation_003.phpt
blob: f82dc01b9cd1aef45dd394adba91685575a9d5b2 (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