summaryrefslogtreecommitdiff
path: root/Zend/tests/class_alias_021.phpt
blob: dd90e127f4dc15e0aa44f85d761db17d2e8571c0 (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
--TEST--
Overriding internal class with class alias
--FILE--
<?php

namespace foo;

class bar { }

class_alias('foo\bar', 'baz');

use \baz as stdClass;

var_dump(new bar);
var_dump(new stdClass);
var_dump(new \baz);

?>
--EXPECTF--
object(foo\bar)#%d (0) {
}
object(foo\bar)#%d (0) {
}
object(foo\bar)#%d (0) {
}