xref: /PHP-8.0/Zend/tests/trait_exists_001.phpt (revision 852485d8)
1--TEST--
2Testing trait_exists()
3--FILE--
4<?php
5
6trait foo {
7}
8
9var_dump(trait_exists('foo'));
10var_dump(trait_exists(1));
11var_dump(trait_exists(NULL));
12
13?>
14--EXPECT--
15bool(true)
16bool(false)
17bool(false)
18