xref: /PHP-7.2/Zend/tests/trait_exists_003.phpt (revision 478e5d1d)
1--TEST--
2Checking trait_exists(): interface, trait, abstract and final class
3--FILE--
4<?php
5
6interface a { }
7
8abstract class b { }
9
10final class c { }
11
12trait d {}
13
14var_dump(trait_exists('a'));
15var_dump(trait_exists('b'));
16var_dump(trait_exists('c'));
17var_dump(trait_exists('d'));
18
19?>
20--EXPECT--
21bool(false)
22bool(false)
23bool(false)
24bool(true)
25