1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 13:31:27 +02:00
Files
archived-php-src/ext/standard/tests/class_object/method_exists_variation_003.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

26 lines
619 B
PHP

--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