Property | Type | Description | |
---|---|---|---|
$cookieJar | |||
$crawler | |||
$followRedirects | |||
$history | |||
$insulated | |||
$redirect | |||
$request | |||
$response | |||
$server |
Method | Description | |
---|---|---|
__construct ( array $server = [], Symfony\Component\BrowserKit\History $history = null, Symfony\Component\BrowserKit\CookieJar $cookieJar = null ) | Constructor. | |
back ( ) : |
Goes back in the browser history. | |
click ( Symfony\Component\DomCrawler\Link $link ) | Clicks on a given link. | |
click ( Symfony\Component\DomCrawler\Link $link ) : |
Clicks on a given link. | |
followRedirect ( ) : |
Follow redirects? | |
followRedirects ( boolean $followRedirect = true ) | Sets whether to automatically follow redirects or not. | |
forward ( ) : |
Goes forward in the browser history. | |
getCookieJar ( ) : Symfony\Component\BrowserKit\CookieJar | Returns the CookieJar instance. | |
getCrawler ( ) : |
Returns the current Crawler instance. | |
getHistory ( ) : Symfony\Component\BrowserKit\History | Returns the History instance. | |
getRequest ( ) : Symfony\Component\BrowserKit\Request | Returns the current Request instance. | |
getRequest ( ) : Symfony\Component\BrowserKit\Request | Returns the current Request instance. | |
getResponse ( ) : Symfony\Component\BrowserKit\Response | Returns the current Response instance. | |
getResponse ( ) : Symfony\Component\BrowserKit\Response | Returns the current Response instance. | |
getServerParameter ( string $key, string $default = '' ) : string | Gets single server parameter for specified key. | |
insulate ( boolean $insulated = true ) | Sets the insulated flag. | |
reload ( ) : |
Reloads the current browser. | |
request ( string $method, string $uri, array $parameters = [], array $files = [], array $server = [], string $content = null, boolean $changeHistory = true ) : |
Calls a URI. | |
restart ( ) | Restarts the client. | |
setServerParameter ( string $key, string $value ) | Sets single server parameter. | |
setServerParameters ( array $server ) | Sets server parameters. | |
submit ( |
Submits a form. | |
submit ( |
Submits a form. |
Method | Description | |
---|---|---|
createCrawlerFromContent ( string $uri, string $content, string $type ) : |
Creates a crawler. | |
createCrawlerFromContent ( string $uri, string $content, string $type ) : |
Creates a crawler. | |
doRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response | Makes a request. | |
doRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response | Makes a request. | |
doRequestInProcess ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response | Makes a request in another process. | |
doRequestInProcess ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response | Makes a request in another process. | |
filterRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Request | Filters the request. | |
filterRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Request | Filters the request. | |
filterResponse ( Symfony\Component\BrowserKit\Response $response ) : Symfony\Component\BrowserKit\Response | Filters the Response. | |
filterResponse ( Symfony\Component\BrowserKit\Response $response ) : Symfony\Component\BrowserKit\Response | Filters the Response. | |
getAbsoluteUri ( string $uri ) : string | Takes a URI and converts it to absolute if it is not already absolute. | |
getScript ( Symfony\Component\BrowserKit\Request $request ) | Returns the script to execute when the request must be insulated. | |
getScript ( Symfony\Component\BrowserKit\Request $request ) | Returns the script to execute when the request must be insulated. | |
requestFromRequest ( Symfony\Component\BrowserKit\Request $request, boolean $changeHistory = true ) : |
Makes a request from a Request object directly. | |
requestFromRequest ( Symfony\Component\BrowserKit\Request $request, boolean $changeHistory = true ) : |
Makes a request from a Request object directly. |
public __construct ( array $server = [], Symfony\Component\BrowserKit\History $history = null, Symfony\Component\BrowserKit\CookieJar $cookieJar = null ) | ||
$server | array | The server parameters (equivalent of $_SERVER) |
$history | Symfony\Component\BrowserKit\History | A History instance to store the browser history |
$cookieJar | Symfony\Component\BrowserKit\CookieJar | A CookieJar instance to store the cookies |
public back ( ) : |
||
return |
public click ( Symfony\Component\DomCrawler\Link $link ) | ||
$link | Symfony\Component\DomCrawler\Link | A Link instance |
public click ( Symfony\Component\DomCrawler\Link $link ) : |
||
$link | Symfony\Component\DomCrawler\Link | A Link instance |
return |
abstract protected doRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response | ||
$request | Symfony\Component\BrowserKit\Request | A Request instance |
return | Symfony\Component\BrowserKit\Response | A Response instance |
abstract protected doRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response | ||
$request | Symfony\Component\BrowserKit\Request | A Request instance |
return | Symfony\Component\BrowserKit\Response | A Response instance |
protected doRequestInProcess ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response | ||
$request | Symfony\Component\BrowserKit\Request | A Request instance |
return | Symfony\Component\BrowserKit\Response | A Response instance |
protected doRequestInProcess ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response | ||
$request | Symfony\Component\BrowserKit\Request | A Request instance |
return | Symfony\Component\BrowserKit\Response | A Response instance |
protected filterRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Request | ||
$request | Symfony\Component\BrowserKit\Request | The request to filter |
return | Symfony\Component\BrowserKit\Request |
protected filterRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Request | ||
$request | Symfony\Component\BrowserKit\Request | The request to filter |
return | Symfony\Component\BrowserKit\Request |
protected filterResponse ( Symfony\Component\BrowserKit\Response $response ) : Symfony\Component\BrowserKit\Response | ||
$response | Symfony\Component\BrowserKit\Response | The Response to filter |
return | Symfony\Component\BrowserKit\Response |
protected filterResponse ( Symfony\Component\BrowserKit\Response $response ) : Symfony\Component\BrowserKit\Response | ||
$response | Symfony\Component\BrowserKit\Response | The Response to filter |
return | Symfony\Component\BrowserKit\Response |
public followRedirect ( ) : |
||
return |
public followRedirects ( boolean $followRedirect = true ) | ||
$followRedirect | boolean | Whether to follow redirects |
public forward ( ) : |
||
return |
protected getAbsoluteUri ( string $uri ) : string | ||
$uri | string | A uri |
return | string | An absolute uri |
public getCookieJar ( ) : Symfony\Component\BrowserKit\CookieJar | ||
return | Symfony\Component\BrowserKit\CookieJar | A CookieJar instance |
public getCrawler ( ) : |
||
return | A Crawler instance |
public getHistory ( ) : Symfony\Component\BrowserKit\History | ||
return | Symfony\Component\BrowserKit\History | A History instance |
public getRequest ( ) : Symfony\Component\BrowserKit\Request | ||
return | Symfony\Component\BrowserKit\Request | A Request instance |
public getRequest ( ) : Symfony\Component\BrowserKit\Request | ||
return | Symfony\Component\BrowserKit\Request | A Request instance |
public getResponse ( ) : Symfony\Component\BrowserKit\Response | ||
return | Symfony\Component\BrowserKit\Response | A Response instance |
public getResponse ( ) : Symfony\Component\BrowserKit\Response | ||
return | Symfony\Component\BrowserKit\Response | A Response instance |
protected getScript ( Symfony\Component\BrowserKit\Request $request ) | ||
$request | Symfony\Component\BrowserKit\Request | A Request instance |
protected getScript ( Symfony\Component\BrowserKit\Request $request ) | ||
$request | Symfony\Component\BrowserKit\Request | A Request instance |
public reload ( ) : |
||
return |
public request ( string $method, string $uri, array $parameters = [], array $files = [], array $server = [], string $content = null, boolean $changeHistory = true ) : |
||
$method | string | The request method |
$uri | string | The URI to fetch |
$parameters | array | The Request parameters |
$files | array | The files |
$server | array | The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does) |
$content | string | The raw body data |
$changeHistory | boolean | Whether to update the history or not (only used internally for back(), forward(), and reload()) |
return |
protected requestFromRequest ( Symfony\Component\BrowserKit\Request $request, boolean $changeHistory = true ) : |
||
$request | Symfony\Component\BrowserKit\Request | A Request instance |
$changeHistory | boolean | Whether to update the history or not (only used internally for back(), forward(), and reload()) |
return |
protected requestFromRequest ( Symfony\Component\BrowserKit\Request $request, boolean $changeHistory = true ) : |
||
$request | Symfony\Component\BrowserKit\Request | A Request instance |
$changeHistory | boolean | Whether to update the history or not (only used internally for back(), forward(), and reload()) |
return |
public setServerParameter ( string $key, string $value ) | ||
$key | string | A key of the parameter |
$value | string | A value of the parameter |
public setServerParameters ( array $server ) | ||
$server | array | An array of server parameters |