summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_070.phpt
blob: 9c0e06abffbff299b1f038305df019125bf1a951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Testing parameter type-hinted with default value inside namespace
--FILE--
<?php

namespace foo;

class bar {
    public function __construct(\stdclass $x = NULL) {
        var_dump($x);
    }
}

new bar(new \stdclass);
new bar(null);

?>
--EXPECTF--
object(stdClass)#%d (0) {
}
NULL