xref: /PHP-7.4/ext/reflection/tests/bug38194.phpt (revision 782352c5)
1--TEST--
2Reflection Bug #38194 (ReflectionClass::isSubclassOf() returns TRUE for the class itself)
3--FILE--
4<?php
5class ObjectOne { }
6
7$objectClass = new ReflectionClass('ObjectOne');
8var_dump($objectClass->isSubclassOf($objectClass));
9?>
10--EXPECT--
11bool(false)
12