Annotation of embedaddon/php/Zend/tests/interface_exists_002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing interface_exists() inside a namespace
3: --FILE--
4: <?php
5:
6: namespace foo;
7:
8: interface IFoo { }
9:
10: interface ITest extends IFoo { }
11:
12: interface IBar extends IFoo { }
13:
14:
15: var_dump(interface_exists('IFoo'));
16: var_dump(interface_exists('foo\\IFoo'));
17: var_dump(interface_exists('FOO\\ITEST'));
18:
19: ?>
20: --EXPECT--
21: bool(false)
22: bool(true)
23: bool(true)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>