blob: ab20dd20ea1730c4aa74d62799c57d3a586f8227 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--TEST--
Testing interface_exists()
--FILE--
<?php
interface foo {
}
var_dump(interface_exists('foo'));
var_dump(interface_exists(1));
var_dump(interface_exists(NULL));
var_dump(interface_exists(new stdClass));
?>
--EXPECTF--
bool(true)
bool(false)
bool(false)
Warning: interface_exists() expects parameter 1 to be string, object given in %s on line %d
NULL
|