summaryrefslogtreecommitdiff
path: root/ext/spl/tests/class_implements_basic.phpt
blob: 0a51251588bc67b21d453de5a0dedd9722447576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
SPL: Test class_implements() function : basic
--FILE--
<?php
echo "*** Testing class_implements() : basic ***\n";


interface foo { }
class bar implements foo {}

var_dump(class_implements(new bar));
var_dump(class_implements('bar'));


?>
--EXPECT--
*** Testing class_implements() : basic ***
array(1) {
  ["foo"]=>
  string(3) "foo"
}
array(1) {
  ["foo"]=>
  string(3) "foo"
}