blob: 6681c9f3161beea266d5fc18c0c983c7afd5d164 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--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"
}
|