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