Annotation of embedaddon/php/Zend/tests/013.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: interface_exists() tests
3: --FILE--
4: <?php
5:
6: interface foo {
7: }
8:
9: var_dump(interface_exists());
10: var_dump(interface_exists("qwerty"));
11: var_dump(interface_exists(""));
12: var_dump(interface_exists(array()));
13: var_dump(interface_exists("test", false));
14: var_dump(interface_exists("foo", false));
15: var_dump(interface_exists("foo"));
16: var_dump(interface_exists("stdClass", false));
17: var_dump(interface_exists("stdClass"));
18:
19: echo "Done\n";
20: ?>
21: --EXPECTF--
22: Warning: interface_exists() expects at least 1 parameter, 0 given in %s on line %d
23: NULL
24: bool(false)
25: bool(false)
26:
27: Warning: interface_exists() expects parameter 1 to be string, array given in %s on line %d
28: NULL
29: bool(false)
30: bool(true)
31: bool(true)
32: bool(false)
33: bool(false)
34: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>