diff options
Diffstat (limited to 'Zend/tests/interface_exists_002.phpt')
-rw-r--r-- | Zend/tests/interface_exists_002.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/interface_exists_002.phpt b/Zend/tests/interface_exists_002.phpt new file mode 100644 index 0000000..be78784 --- /dev/null +++ b/Zend/tests/interface_exists_002.phpt @@ -0,0 +1,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) |