public function testBase64Decode() { $string = 'dGhpcyBpcyBteSArIHN0cmluZyAhQCMk'; $header = new Header('test'); $jwt = new Jwt($header); $result = $jwt->base64Decode($string); $this->assertEquals($result, 'this is my + string !@#$'); }