/** * Test the decoding of an invalid token * @expectedException \Psecio\Jwt\Exception\DecodeException */ public function testDecodeJwtDataInvalidSections() { $header = new Header('test'); $jwt = new Jwt($header); $jwt->issuer('http://example.org')->audience('http://example.com'); $result = $jwt->encode(); $result = substr($result, 0, strlen($result) - 100); $decoded = $jwt->decode($result); }