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