final protected function assertClassImplementsInterface(string $interfaceName, string $className): void
    {
        $this->assertInterfaceExists($interfaceName);
        $this->assertClassExists($className);

        $reflection = new \ReflectionClass($className);

        self::assertTrue($reflection->implementsInterface($interfaceName), \sprintf(
            'Failed asserting that class "%s" implements interface "%s".',
            $className,
            $interfaceName
        ));
    }
final protected function assertClassImplementsInterface(string $interfaceName, string $className): void
    {
        $this->assertInterfaceExists($interfaceName);
        $this->assertClassExists($className);

        $reflection = new \ReflectionClass($className);

        self::assertTrue($reflection->implementsInterface($interfaceName), \sprintf(
            'Failed asserting that class "%s" implements interface "%s".',
            $className,
            $interfaceName
        ));
    }
final protected function assertClassImplementsInterface ( string $ interfaceName , string $ className ) : void { $ this -> assertInterfaceExists ( $ interfaceName ) ; $ this -> assertClassExists ( $ className ) ; $ reflection = new \ ReflectionClass ( $ className ) ; self :: assertTrue ( $ reflection -> implementsInterface ( $ interfaceName ) , \ sprintf ( 'Failed asserting that class "%s" implements interface "%s".' , $ className , $ interfaceName ) ) ; }
Asserts that a class implements an interface.

@param string $interfaceName
@param string $className
Asserts that a class implements an interface .