php-src/Zend/tests/class_alias_001.phpt
2008-05-12 13:30:50 +00:00

31 lines
389 B
PHP

--TEST--
Testing class_alias()
--FILE--
<?php
class foo { }
class_alias('foo', 'bar');
$a = new foo;
$b = new bar;
var_dump($a == $b, $a === $b);
var_dump($a instanceof $b);
var_dump($a instanceof foo);
var_dump($a instanceof bar);
var_dump($b instanceof foo);
var_dump($b instanceof bar);
?>
--EXPECT--
bool(true)
bool(false)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)