Skip to content

Commit c03c4fa

Browse files
committed
Assigned the new immutable signature to $signature (as it was supposed to but I didn't pay attention :X.)
1 parent ae6d565 commit c03c4fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Signature/HmacSha1SignatureTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ public function provideSign()
2121
[
2222
new Uri('https://example.com/'),
2323
'T7pWk5I7re3JTz5FS3LK8rVbQ0U=',
24-
'T7pWk5I7re3JTz5FS3LK8rVbQ0U=',
24+
'uRcxk5ukl+O0nSa9PgMEoIvOQ+M=',
2525
],
2626
[
2727
new Uri('https://example.com/thea.pot',[], 'THEAPOT'),
2828
'XyTxyDmU2s3iBMBpSX4DbZ47Ltg=',
29-
'XyTxyDmU2s3iBMBpSX4DbZ47Ltg=',
29+
'H6aCWT5WcUlqw4/qXVm4tMjE7P0=',
3030
],
3131
[
3232
new Uri('https://example.com/?foo=bar', ['foo' => 'bar',]),
3333
'OXZBqYIhLdj7CT6bYudGqc8OzlU=',
34-
'OXZBqYIhLdj7CT6bYudGqc8OzlU=',
34+
'3oA2qaA8dpQFdB8n0tyjrXLNvsg=',
3535
],
3636
[
3737
new Uri('https://example.com/',['foo' => 'bar',], 'HEAD'),
3838
'T7pWk5I7re3JTz5FS3LK8rVbQ0U=',
39-
'T7pWk5I7re3JTz5FS3LK8rVbQ0U=',
39+
'uRcxk5ukl+O0nSa9PgMEoIvOQ+M=',
4040
],
4141
];
4242
}
@@ -52,7 +52,7 @@ public function testSign(UriInterface $uri, $signedSignature, $signedTokenSecret
5252
$signature = new HmacSha1Signature($secret);
5353
$tokenSecret = new TokenSecret('tokenSecret');
5454
$this->assertSame($signedSignature, $signature->sign($uri));
55-
$signature->withTokenSecret($tokenSecret);
55+
$signature = $signature->withTokenSecret($tokenSecret);
5656
$this->assertSame($signedTokenSecretSignature, $signature->sign($uri));
5757
}
5858
}

0 commit comments

Comments
 (0)