function Braintree_DigestTest::testHmacSha1_again in Commerce Braintree 7
File
- braintree_php/
tests/ unit/ DigestTest.php, line 51
Class
Code
function testHmacSha1_again() {
Braintree_Configuration::privateKey(str_repeat(chr(0xaa), 80));
$message = 'Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data';
$d = Braintree_Digest::_hmacSha1($message, Braintree_Configuration::privateKey());
$this
->assertEquals('e8e99d0f45237d786d6bbaa7965c7808bbff1a91', $d);
}