1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/reflection/tests/reflectionClass_getInterfaceNames_basic.phpt
2008-11-17 11:20:19 +00:00

26 lines
475 B
PHP

--TEST--
ReflectionClass::getInterfaceNames()
--SKIPIF--
<?php extension_loaded('reflection') or die('skip - reflection extension not loaded'); ?>
--CREDITS--
Michelangelo van Dam <dragonbe@gmail.com>
#testfest roosendaal on 2008-05-10
--FILE--
<?php
interface Foo { }
interface Bar { }
class Baz implements Foo, Bar { }
$rc1 = new ReflectionClass("Baz");
var_dump($rc1->getInterfaceNames());
?>
--EXPECT--
array(2) {
[0]=>
string(3) "Foo"
[1]=>
string(3) "Bar"
}