Exemple #1
0
 /**
  * Testing the custom base64 encoding
  */
 public function testBase64Encode()
 {
     $string = 'this is my + string !@#$';
     $header = new Header('test');
     $jwt = new Jwt($header);
     $result = $jwt->base64Encode($string);
     $this->assertEquals($result, 'dGhpcyBpcyBteSArIHN0cmluZyAhQCMk');
 }