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

namespace foo;

interface IFoo { }

interface ITest extends IFoo { }

interface IBar extends IFoo { }


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

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