php-src/Zend/tests/interface_exists_002.phpt

24 lines
343 B
Plaintext
Raw Normal View History

2008-05-13 01:55:21 +08:00
--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'));
2008-12-05 04:12:30 +08:00
var_dump(interface_exists('foo\\IFoo'));
var_dump(interface_exists('FOO\\ITEST'));
2008-05-13 01:55:21 +08:00
?>
--EXPECT--
bool(false)
bool(true)
bool(true)