summaryrefslogtreecommitdiff
path: root/Zend/tests/interface_exists_002.phpt
blob: f4d8a03cd828ddf4b2814ac9d82c30c39d5b9d0a (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)