summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/reflectionClass_isInternal_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/reflectionClass_isInternal_error.phpt')
-rw-r--r--ext/reflection/tests/reflectionClass_isInternal_error.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/reflection/tests/reflectionClass_isInternal_error.phpt b/ext/reflection/tests/reflectionClass_isInternal_error.phpt
new file mode 100644
index 000000000..b1117e830
--- /dev/null
+++ b/ext/reflection/tests/reflectionClass_isInternal_error.phpt
@@ -0,0 +1,14 @@
+--TEST--
+ReflectionClass::isInternal() - invalid params
+--FILE--
+<?php
+$r1 = new ReflectionClass("stdClass");
+var_dump($r1->isInternal('X'));
+var_dump($r1->isInternal('X', true));
+?>
+--EXPECTF--
+Warning: Wrong parameter count for ReflectionClass::isInternal() in %s on line 3
+NULL
+
+Warning: Wrong parameter count for ReflectionClass::isInternal() in %s on line 4
+NULL