summaryrefslogtreecommitdiff
path: root/ext/standard/tests/class_object/trait_class_exists_variation_003.phpt
blob: 6a8e55bda086dc0ca21fbd45442448d75189095b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Test trait_exists() function : usage variations  - case sensitivity
--FILE--
<?php
/* Prototype  : proto bool trait_exists(string traitname [, bool autoload])
 * Description: Checks if the trait exists 
 * Source code: Zend/zend_builtin_functions.c
 * Alias to functions: 
 */

trait caseSensitivityTest {}
var_dump(trait_exists('casesensitivitytest'));

echo "Done"
?>
--EXPECTF--
bool(true)
Done