summaryrefslogtreecommitdiff
path: root/Zend/tests/trait_exists_001.phpt
blob: 8a7c55d58608dd9756f44e3e67aba07e153ffded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Testing trait_exists()
--FILE--
<?php

trait foo {
}

var_dump(trait_exists('foo'));
var_dump(trait_exists(1));
var_dump(trait_exists(NULL));

?>
--EXPECT--
bool(true)
bool(false)
bool(false)