From 2d26c38d6cbdc172b9a6f75ef02ffea55c87fd2f Mon Sep 17 00:00:00 2001 From: Michael Hogg Date: Fri, 28 Aug 2015 13:11:20 +0100 Subject: [PATCH] Update unit test: testDetermineAccessTokenInHeaderValid() --- tests/unit/TokenType/MacTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/TokenType/MacTest.php b/tests/unit/TokenType/MacTest.php index fce568fa..c05ccdb4 100644 --- a/tests/unit/TokenType/MacTest.php +++ b/tests/unit/TokenType/MacTest.php @@ -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));