final protected function assertClassSatisfiesSpecification(callable $specification, string $className, string $message = ''): void
    {
        $this->assertClassExists($className);

        self::assertTrue($specification($className), \sprintf(
            '' !== $message ? $message : 'Failed asserting that class "%s" satisfies a specification.',
            $className
        ));
    }
final protected function assertClassSatisfiesSpecification(callable $specification, string $className, string $message = ''): void
    {
        $this->assertClassExists($className);

        self::assertTrue($specification($className), \sprintf(
            '' !== $message ? $message : 'Failed asserting that class "%s" satisfies a specification.',
            $className
        ));
    }
final protected function assertClassSatisfiesSpecification ( callable $ specification , string $ className , string $ message = '' ) : void { $ this -> assertClassExists ( $ className ) ; self :: assertTrue ( $ specification ( $ className ) , \ sprintf ( '' !== $ message ? $ message : 'Failed asserting that class "%s" satisfies a specification.' , $ className ) ) ; }
Asserts that a class satisfies a specification.

The specification will be invoked with a single argument, the class name, and should return true or false.

@param callable $specification
@param string   $className
@param string   $message
Asserts that a class satisfies a specification .