프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cookieJar | |||
$crawler | |||
$followRedirects | |||
$history | |||
$insulated | |||
$redirect | |||
$request | |||
$response | |||
$server |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 ( ) : |
||
리턴 |
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 |
리턴 |
abstract protected doRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response | ||
$request | Symfony\Component\BrowserKit\Request | A Request instance |
리턴 | 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 |
리턴 | 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 |
리턴 | 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 |
리턴 | 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 |
리턴 | Symfony\Component\BrowserKit\Request |
protected filterRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Request | ||
$request | Symfony\Component\BrowserKit\Request | The request to filter |
리턴 | Symfony\Component\BrowserKit\Request |
protected filterResponse ( Symfony\Component\BrowserKit\Response $response ) : Symfony\Component\BrowserKit\Response | ||
$response | Symfony\Component\BrowserKit\Response | The Response to filter |
리턴 | Symfony\Component\BrowserKit\Response |
protected filterResponse ( Symfony\Component\BrowserKit\Response $response ) : Symfony\Component\BrowserKit\Response | ||
$response | Symfony\Component\BrowserKit\Response | The Response to filter |
리턴 | Symfony\Component\BrowserKit\Response |
public followRedirect ( ) : |
||
리턴 |
public followRedirects ( boolean $followRedirect = true ) | ||
$followRedirect | boolean | Whether to follow redirects |
public forward ( ) : |
||
리턴 |
protected getAbsoluteUri ( string $uri ) : string | ||
$uri | string | A uri |
리턴 | string | An absolute uri |
public getCookieJar ( ) : Symfony\Component\BrowserKit\CookieJar | ||
리턴 | Symfony\Component\BrowserKit\CookieJar | A CookieJar instance |
public getCrawler ( ) : |
||
리턴 | A Crawler instance |
public getHistory ( ) : Symfony\Component\BrowserKit\History | ||
리턴 | Symfony\Component\BrowserKit\History | A History instance |
public getRequest ( ) : Symfony\Component\BrowserKit\Request | ||
리턴 | Symfony\Component\BrowserKit\Request | A Request instance |
public getRequest ( ) : Symfony\Component\BrowserKit\Request | ||
리턴 | Symfony\Component\BrowserKit\Request | A Request instance |
public getResponse ( ) : Symfony\Component\BrowserKit\Response | ||
리턴 | Symfony\Component\BrowserKit\Response | A Response instance |
public getResponse ( ) : Symfony\Component\BrowserKit\Response | ||
리턴 | 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 ( ) : |
||
리턴 |
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()) |
리턴 |
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()) |
리턴 |
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()) |
리턴 |
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 |