Annotation of embedaddon/php/ext/spl/tests/class_implements_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: Test class_implements() function : basic
3: --FILE--
4: <?php
5: /* Prototype : array class_implements(mixed what [, bool autoload ])
6: * Description: Return all classes and interfaces implemented by SPL
7: * Source code: ext/spl/php_spl.c
8: * Alias to functions:
9: */
10:
11: echo "*** Testing class_implements() : basic ***\n";
12:
13:
14: interface foo { }
15: class bar implements foo {}
16:
17: var_dump(class_implements(new bar));
18: var_dump(class_implements('bar'));
19:
20:
21: ?>
22: ===DONE===
23: --EXPECT--
24: *** Testing class_implements() : basic ***
25: array(1) {
26: ["foo"]=>
27: string(3) "foo"
28: }
29: array(1) {
30: ["foo"]=>
31: string(3) "foo"
32: }
33: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>