signingText($env); $this->assertEquals($expected, $text, "'$text' should be '$expected'"); } static public function provider() { return array( array( // Sample case given in spec: // http://salmon-protocol.googlecode.com/svn/trunk/draft-panzer-magicsig-00.html#signing array( 'data' => 'Tm90IHJlYWxseSBBdG9t', 'data_type' => 'application/atom+xml', 'encoding' => 'base64url', 'alg' => 'RSA-SHA256' ), 'Tm90IHJlYWxseSBBdG9t.YXBwbGljYXRpb24vYXRvbSt4bWw=.YmFzZTY0dXJs.UlNBLVNIQTI1Ng==' ) ); } }