php-src/Zend/tests/class_exists_002.phpt
2018-10-14 19:45:12 +02:00

27 lines
440 B
PHP

--TEST--
Testing several valid and invalid parameters
--FILE--
<?php
class foo {
}
var_dump(class_exists(''));
var_dump(class_exists(NULL));
var_dump(class_exists('FOO'));
var_dump(class_exists('bar'));
var_dump(class_exists(1));
var_dump(class_exists(new stdClass));
?>
--EXPECTF--
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
Warning: class_exists() expects parameter 1 to be string, object given in %s on line %d
NULL