/** * {@inheritDoc} */ public function getAuthorizationUrl($redirectUrl) { if (!preg_match('#^https://.*#', $redirectUrl)) { $redirectUrl = $this->generator->generate($redirectUrl, array(), true); } return parent::getAuthorizationUrl($redirectUrl); }
public function testErrorKeyFromRequest() { $auth = new Authorization($this->authUrl, $this->appId); $this->assertEquals($error = 'error', $auth->getErrorFromRequest(array('error' => $error))); }