Lcobucci\JWT\Signer\Ecdsa\EccAdapterTest::createShouldBuildObjectFromTheMathInterface PHP Method

createShouldBuildObjectFromTheMathInterface() public method

    public function createShouldBuildObjectFromTheMathInterface()
    {
        $adapter = EccAdapter::create($this->mathInterface);
        self::assertAttributeInstanceOf(Signer::class, 'signer', $adapter);
        self::assertAttributeInstanceOf(NistCurve::class, 'nistCurve', $adapter);
        self::assertAttributeInstanceOf(SignatureSerializer::class, 'serializer', $adapter);
        self::assertAttributeInstanceOf(RandomNumberGeneratorInterface::class, 'numberGenerator', $adapter);
    }