/** * @test * * @uses \Lcobucci\JWT\Parser::__construct * * @covers \Lcobucci\JWT\Parser::parse * @covers \Lcobucci\JWT\Parser::splitJwt * @covers \Lcobucci\JWT\Parser::parseHeader * * @expectedException \InvalidArgumentException */ public function parseMustRaiseExceptionWhenHeaderIsFromAnEncryptedToken() { $this->decoder->method('jsonDecode')->willReturn(['enc' => 'AAA']); $parser = $this->createParser(); $parser->parse('a.a.'); }