mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
18 lines
221 B
PHP
18 lines
221 B
PHP
--TEST--
|
|
Testing interface_exists()
|
|
--FILE--
|
|
<?php
|
|
|
|
interface foo {
|
|
}
|
|
|
|
var_dump(interface_exists('foo'));
|
|
var_dump(interface_exists(1));
|
|
var_dump(interface_exists(NULL));
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(false)
|
|
bool(false)
|