diff --git a/tests/ProxyManagerTest/ProxyGenerator/AbstractProxyGeneratorTest.php b/tests/ProxyManagerTest/ProxyGenerator/AbstractProxyGeneratorTest.php
index <HASH>..<HASH> 100644
--- a/tests/ProxyManagerTest/ProxyGenerator/AbstractProxyGeneratorTest.php
+++ b/tests/ProxyManagerTest/ProxyGenerator/AbstractProxyGeneratorTest.php
@@ -52,7 +52,10 @@ abstract class AbstractProxyGeneratorTest extends TestCase
         if ($originalClass->isInterface()) {
             self::assertTrue($generatedReflection->implementsInterface($className));
         } else {
-            self::assertSame($originalClass->getName(), $generatedReflection->getParentClass()->getName());
+            $parentClass = $generatedReflection->getParentClass();
+
+            self::assertInstanceOf(ReflectionClass::class, $parentClass);
+            self::assertSame($originalClass->getName(), $parentClass->getName());
         }
 
         self::assertSame($generatedClassName, $generatedReflection->getName());
Removed potential method call on `ReflectionClass|null` due to `ReflectionClass#getParentClass()` signature (broken as heck)