Update unit test: testDetermineAccessTokenInHeaderValid()

This commit is contained in:
Michael Hogg 2015-08-28 13:11:20 +01:00
parent eeaa68400f
commit 2d26c38d6c

View File

@ -57,7 +57,7 @@ class MacTest extends \PHPUnit_Framework_TestCase
$request->getPort(),
'ext'
];
$calculatedSignature = base64_encode(hash_hmac('sha256', implode("\n", $calculatedSignatureParts), 'abcdef'));
$calculatedSignature = base64_encode(hash_hmac('sha256', implode("\n", $calculatedSignatureParts), 'abcdef', true));
$request->headers->set('Authorization', sprintf('MAC id="foo", nonce="foo", ts="%s", mac="%s", ext="ext"', $ts, $calculatedSignature));