final protected function assertClassUsesTrait(string $traitName, string $className): void
    {
        $this->assertTraitExists($traitName);
        $this->assertClassExists($className);

        self::assertContains($traitName, \class_uses($className), \sprintf(
            'Failed asserting that class "%s" uses trait "%s".',
            $className,
            $traitName
        ));
    }
final protected function assertClassUsesTrait(string $traitName, string $className): void
    {
        $this->assertTraitExists($traitName);
        $this->assertClassExists($className);

        self::assertContains($traitName, \class_uses($className), \sprintf(
            'Failed asserting that class "%s" uses trait "%s".',
            $className,
            $traitName
        ));
    }
final protected function assertClassUsesTrait ( string $ traitName , string $ className ) : void { $ this -> assertTraitExists ( $ traitName ) ; $ this -> assertClassExists ( $ className ) ; self :: assertContains ( $ traitName , \ class_uses ( $ className ) , \ sprintf ( 'Failed asserting that class "%s" uses trait "%s".' , $ className , $ traitName ) ) ; }
Asserts that a class uses a trait.

@param string $traitName
@param string $className
Asserts that a class uses a trait .