summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionExtension_constructor_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionExtension_constructor_error.phpt')
-rw-r--r--ext/reflection/tests/ReflectionExtension_constructor_error.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/reflection/tests/ReflectionExtension_constructor_error.phpt b/ext/reflection/tests/ReflectionExtension_constructor_error.phpt
new file mode 100644
index 0000000..9eae206
--- /dev/null
+++ b/ext/reflection/tests/ReflectionExtension_constructor_error.phpt
@@ -0,0 +1,16 @@
+--TEST--
+ReflectionExtension::__construct()
+--CREDITS--
+Gerrit "Remi" te Sligte <remi@wolerized.com>
+Leon Luijkx <leon@phpgg.nl>
+--FILE--
+<?php
+$obj = new ReflectionExtension();
+$test = $obj instanceof ReflectionExtension;
+var_dump($test);
+?>
+==DONE==
+--EXPECTF--
+Warning: ReflectionExtension::__construct() expects exactly %d parameter, %d given in %s.php on line %d
+bool(true)
+==DONE==