Expanded class hierarchy of TestClient
class TestClient extends Client {
protected function getScript($request) {
$script = parent::getScript($request);
$autoload = file_exists(__DIR__ . '/../../vendor/autoload.php') ? __DIR__ . '/../../vendor/autoload.php' : __DIR__ . '/../../../../../../vendor/autoload.php';
$script = preg_replace('/(\\->register\\(\\);)/', "\$0\nrequire_once '{$autoload}';\n", $script);
return $script;
}
}
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Client:: |
protected | property | ||
Client:: |
protected | function | Makes a request. | |
Client:: |
protected | function | Filters an array of files. | |
Client:: |
protected | function | Converts the BrowserKit request to a HttpKernel request. | |
Client:: |
protected | function | Converts the HttpKernel response to a BrowserKit response. | |
Client:: |
public | function | ||
Client:: |
public | function | ||
Client:: |
public | function | Constructor. | |
TestClient:: |
protected | function |
Returns the script to execute when the request must be insulated. Overrides Client:: |