summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug38194.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/bug38194.phpt')
-rwxr-xr-xext/reflection/tests/bug38194.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug38194.phpt b/ext/reflection/tests/bug38194.phpt
new file mode 100755
index 0000000000..5c888af59d
--- /dev/null
+++ b/ext/reflection/tests/bug38194.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Reflection Bug #38194 (ReflectionClass::isSubclassOf() returns TRUE for the class itself)
+--SKIPIF--
+<?php extension_loaded('reflection') or die('skip'); ?>
+--FILE--
+<?php
+class Object { }
+
+$objectClass= new ReflectionClass('Object');
+var_dump($objectClass->isSubclassOf($objectClass));
+?>
+--EXPECT--
+bool(false)