final protected function assertTraitSatisfiesSpecification(callable $specification, string $traitName, string $message = ''): void
    {
        $this->assertTraitExists($traitName);

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

        self::assertTrue($specification($traitName), \sprintf(
            '' !== $message ? $message : 'Failed asserting that trait "%s" satisfies a specification.',
            $traitName
        ));
    }
final protected function assertTraitSatisfiesSpecification ( callable $ specification , string $ traitName , string $ message = '' ) : void { $ this -> assertTraitExists ( $ traitName ) ; self :: assertTrue ( $ specification ( $ traitName ) , \ sprintf ( '' !== $ message ? $ message : 'Failed asserting that trait "%s" satisfies a specification.' , $ traitName ) ) ; }
Asserts that a trait 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   $traitName
@param string   $message
Asserts that a trait satisfies a specification .