getHistory() публичный Метод

Returns the History instance.
public getHistory ( ) : Symfony\Component\BrowserKit\History
Результат Symfony\Component\BrowserKit\History A History instance
Пример #1
0
 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());
 }
Пример #2
0
 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;
 }
Пример #3
0
 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;
 }
Пример #4
0
 protected function debugResponse()
 {
     $this->debugSection('Response', $this->getResponseStatusCode());
     $this->debugSection('Page', $this->client->getHistory()->current()->getUri());
 }