1--TEST--
2Testing interface_exists() inside a namespace
3--FILE--
4<?php
5
6namespace foo;
7
8interface IFoo { }
9
10interface ITest extends IFoo { }
11
12interface IBar extends IFoo { }
13
14
15var_dump(interface_exists('IFoo'));
16var_dump(interface_exists('foo\\IFoo'));
17var_dump(interface_exists('FOO\\ITEST'));
18
19?>
20--EXPECT--
21bool(false)
22bool(true)
23bool(true)
24