summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt')
-rw-r--r--ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt8
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt b/ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt
index f6d4c9d3d2..f24958421f 100644
--- a/ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt
+++ b/ext/reflection/tests/ReflectionObject_isInstantiable_error.phpt
@@ -2,21 +2,19 @@
ReflectionObject::IsInstantiable() - invalid params
--FILE--
<?php
-class privateCtorOld {
- private function privateCtorOld() {}
+class privateCtornew {
+ private function __construct() {}
public static function reflectionObjectFactory() {
return new ReflectionObject(new self);
}
}
-$reflectionObject = privateCtorOld::reflectionObjectFactory();
+$reflectionObject = privateCtorNew::reflectionObjectFactory();
var_dump($reflectionObject->IsInstantiable('X'));
var_dump($reflectionObject->IsInstantiable(0, null));
?>
--EXPECTF--
-Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; privateCtorOld has a deprecated constructor in %s on line %d
-
Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 1 given in %s on line %d
NULL