summaryrefslogtreecommitdiff
path: root/ext/standard/tests/class_object/trait_class_exists_variation_003.phpt
blob: 6548c32687f90a277717e48f99a03ab518ec3d7c (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"
?>
--EXPECT--
bool(true)
Done