/** * @test * * @covers \Lcobucci\JWT\Configuration::getParser * @covers \Lcobucci\JWT\Configuration::setDecoder * @covers \Lcobucci\JWT\Configuration::getDecoder * @covers \Lcobucci\JWT\Configuration::getClaimFactory * @covers \Lcobucci\JWT\Configuration::setClaimFactory * * @uses \Lcobucci\JWT\Builder * @uses \Lcobucci\JWT\Claim\Factory * @uses \Lcobucci\JWT\Parser */ public function getParserShouldReturnAParserWithCustomizedDecoderAndClaimFactory() { $config = new Configuration(); $config->setDecoder($this->decoder); $config->setClaimFactory($this->claimFactory); $parser = $config->getParser(); self::assertInstanceOf(Parser::class, $parser); self::assertAttributeSame($this->decoder, 'decoder', $parser); self::assertAttributeSame($this->claimFactory, 'claimFactory', $parser); }