mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
24 lines
343 B
Plaintext
24 lines
343 B
Plaintext
|
--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)
|