php-src/Zend/tests/ns_070.phpt
Stanislav Malyshev 1b4134c07b Namespace resolution streamlining patch
[DOC] new resolution rules should be documented soon
2008-11-11 19:45:29 +00:00

22 lines
281 B
PHP

--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