xref: /PHP-5.6/Zend/tests/class_alias_001.phpt (revision 5c2ff404)
1--TEST--
2Testing class_alias()
3--FILE--
4<?php
5
6class foo { }
7
8class_alias('foo', 'bar');
9
10$a = new foo;
11$b = new bar;
12
13var_dump($a == $b, $a === $b);
14var_dump($a instanceof $b);
15
16var_dump($a instanceof foo);
17var_dump($a instanceof bar);
18
19var_dump($b instanceof foo);
20var_dump($b instanceof bar);
21
22?>
23--EXPECT--
24bool(true)
25bool(false)
26bool(true)
27bool(true)
28bool(true)
29bool(true)
30bool(true)
31