getHistory() public method

Returns the History instance.
public getHistory ( ) : Symfony\Component\BrowserKit\History
return Symfony\Component\BrowserKit\History A History instance
コード例 #1
0
ファイル: InnerBrowser.php プロジェクト: Eli-TW/Codeception
 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
ファイル: REST.php プロジェクト: corcre/elabftw
 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
ファイル: Framework.php プロジェクト: lenninsanchez/donadores
 protected function debugResponse()
 {
     $this->debugSection('Response', $this->getResponseStatusCode());
     $this->debugSection('Page', $this->client->getHistory()->current()->getUri());
 }