Arquivos
hhvm/hphp/test/quick/reflection_noconstuctor.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

14 linhas
318 B
PHP

<?php
class foo {
public function __construct() {
print "this should only be printed three times!\n";
}
}
$c1 = new foo();
$c2 = (new ReflectionClass('foo'))->newInstance();
$c3 = (new ReflectionClass('foo'))->newInstanceArgs(array());
$no_c = (new ReflectionClass('foo'))->newInstanceWithoutConstructor();