Returns the History instance.
public getHistory ( ) : Symfony\Component\BrowserKit\History | ||
return | Symfony\Component\BrowserKit\History | A History instance |
protected function debugResponse() { $this->debugSection('Response', $this->getResponseStatusCode()); $this->debugSection('Page', $this->client->getHistory()->current()->getUri()); $this->debugSection('Cookies', $this->client->getInternalRequest()->getCookies()); $this->debugSection('Headers', $this->client->getInternalResponse()->getHeaders()); }
private function getRunningClient() { if ($this->client->getHistory()->isEmpty()) { throw new ModuleException($this, "Response is empty. Use `\$I->sendXXX()` methods to send HTTP request"); } return $this->client; }
private function getRunningClient() { if ($this->client->getHistory()->isEmpty()) { throw new ModuleException($this, "Page not loaded. Use `\$I->amOnPage` (or hidden API methods `_request` and `_loadPage`) to open it"); } return $this->client; }
protected function debugResponse() { $this->debugSection('Response', $this->getResponseStatusCode()); $this->debugSection('Page', $this->client->getHistory()->current()->getUri()); }