summaryrefslogtreecommitdiff
path: root/Zend/tests/class_alias_001.phpt
blob: 371f08f80ba163d8341a60fec0d0c2e4e6741b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--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)