/** * @param string $url * @param string $clientId * @param string $scope * @return $this * @throws NoFormException */ public function open($url, $clientId, $scope = '') { $this->_source = new \SimpleXMLElement(self::ELEMENT_VOID); $this->crawler->setUrl($url)->setClientId($clientId)->setScope($scope)->setRedirectUri('http://localhost'); $this->_source = $this->crawler->load()->extractSimpleXmlForm($this->xpath); return $this; }