xref: /PHP-5.6/Zend/tests/trait_exists_002.phpt (revision 478e5d1d)
1--TEST--
2Testing trait_exists() inside a namespace
3--FILE--
4<?php
5
6namespace foo;
7
8trait IFoo { }
9
10trait ITest { }
11
12
13var_dump(trait_exists('IFoo'));
14var_dump(trait_exists('foo\\IFoo'));
15var_dump(trait_exists('FOO\\ITEST'));
16
17?>
18--EXPECT--
19bool(false)
20bool(true)
21bool(true)
22