mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
24 lines
374 B
Plaintext
24 lines
374 B
Plaintext
|
--TEST--
|
||
|
ReflectionClass::getInterfaceNames()
|
||
|
--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"
|
||
|
}
|