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