final protected function assertClassExtends(string $parentClassName, string $className): void
    {
        $this->assertClassExists($parentClassName);
        $this->assertClassExists($className);

        $reflection = new \ReflectionClass($className);

        self::assertTrue($reflection->isSubclassOf($parentClassName), \sprintf(
            'Failed asserting that class "%s" extends "%s".',
            $className,
            $parentClassName
        ));
    }
final protected function assertClassExtends(string $parentClassName, string $className): void
    {
        $this->assertClassExists($parentClassName);
        $this->assertClassExists($className);

        $reflection = new \ReflectionClass($className);

        self::assertTrue($reflection->isSubclassOf($parentClassName), \sprintf(
            'Failed asserting that class "%s" extends "%s".',
            $className,
            $parentClassName
        ));
    }
final protected function assertClassExtends ( string $ parentClassName , string $ className ) : void { $ this -> assertClassExists ( $ parentClassName ) ; $ this -> assertClassExists ( $ className ) ; $ reflection = new \ ReflectionClass ( $ className ) ; self :: assertTrue ( $ reflection -> isSubclassOf ( $ parentClassName ) , \ sprintf ( 'Failed asserting that class "%s" extends "%s".' , $ className , $ parentClassName ) ) ; }
Asserts that a class extends from a parent class.

@param string $parentClassName
@param string $className
Asserts that a class extends from a parent class .