php-src/Zend/tests/trait_exists_001.phpt
2019-03-11 11:32:20 +01:00

18 lines
201 B
PHP

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