You are here

function Braintree_DigestTest::testBuiltInHmacSha1_again in Commerce Braintree 7

File

braintree_php/tests/unit/DigestTest.php, line 33

Class

Braintree_DigestTest

Code

function testBuiltInHmacSha1_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::_builtInHmacSha1($message, Braintree_Configuration::privateKey());
  $this
    ->assertEquals('e8e99d0f45237d786d6bbaa7965c7808bbff1a91', $d);
}