summaryrefslogtreecommitdiff
path: root/Zend/tests/trait_exists_002.phpt
blob: 7b5c8998062f8b8e48d9ba9081162018cd1b6d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Testing trait_exists() inside a namespace
--FILE--
<?php

namespace foo;

trait IFoo { }

trait ITest { }


var_dump(trait_exists('IFoo'));
var_dump(trait_exists('foo\\IFoo'));
var_dump(trait_exists('FOO\\ITEST'));

?>
--EXPECT--
bool(false)
bool(true)
bool(true)