/** * {@inheritdoc} */ public function sign(array $payload) { $payload = array_merge($payload, ['client_id' => $this->getClientId(), 'client_secret' => $this->getClientSecret()]); return $this->signer->sign($payload); }
public function testSign() { $signature = $this->signer->sign(['ClientID' => self::DEFAULT_CLIENT_ID, 'Domain' => 'foo.com', 'Path' => '/', 'Expires' => 'Wed, 13 Jan 2021 22:23:01 GMT', 'Secure' => null, 'HttpOnly' => null]); $this->assertEquals(self::DEFAULT_SIGNATURE, $signature); }