/** * @test * * Ensure empty callback and verifier don't get put into the base string */ public function ensureEmptyVerifierAndCallbackAreRemoved() { $this->signature->setHttpMethod('post'); $this->signature->setResourceUrl('https://example.com/api/user'); $baseString = rawurldecode($this->signature->createBaseString()); $array = []; parse_str($baseString, $array); // might be an assertion to check for missing array key... $this->assertFalse(isset($array['oauth_verifier'])); $this->assertFalse(isset($array['oauth_callback'])); }