class TestClient in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\TestClient
- 8 vendor/behat/mink-browserkit-driver/tests/Custom/ErrorHandlingTest.php \Behat\Mink\Tests\Driver\Custom\TestClient
- 8 vendor/symfony/http-kernel/Tests/Fixtures/TestClient.php \Symfony\Component\HttpKernel\Tests\Fixtures\TestClient
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/Fixtures/TestClient.php \Symfony\Component\HttpKernel\Tests\Fixtures\TestClient
Hierarchy
- class \Symfony\Component\BrowserKit\Client- class \Symfony\Component\HttpKernel\Client- class \Symfony\Component\HttpKernel\Tests\Fixtures\TestClient
 
 
- class \Symfony\Component\HttpKernel\Client
Expanded class hierarchy of TestClient
1 file declares its use of TestClient
- ClientTest.php in vendor/symfony/ http-kernel/ Tests/ ClientTest.php 
File
- vendor/symfony/ http-kernel/ Tests/ Fixtures/ TestClient.php, line 16 
Namespace
Symfony\Component\HttpKernel\Tests\FixturesView source
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;
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| Client:: | protected | property | ||
| Client:: | protected | property | ||
| Client:: | protected | property | ||
| Client:: | protected | property | ||
| Client:: | protected | property | ||
| Client:: | protected | property | ||
| Client:: | protected | property | ||
| Client:: | private | property | ||
| Client:: | protected | property | ||
| Client:: | private | property | ||
| Client:: | protected | property | ||
| Client:: | private | property | ||
| Client:: | protected | property | ||
| Client:: | protected | property | ||
| Client:: | protected | property | ||
| Client:: | public | function | Goes back in the browser history. | |
| Client:: | public | function | Clicks on a given link. | |
| Client:: | protected | function | Creates a crawler. | |
| Client:: | protected | function | Makes a request. Overrides Client:: | |
| Client:: | protected | function | Makes a request in another process. | |
| Client:: | private | function | ||
| Client:: | protected | function | Filters an array of files. | |
| Client:: | protected | function | Converts the BrowserKit request to a HttpKernel request. Overrides Client:: | |
| Client:: | protected | function | Converts the HttpKernel response to a BrowserKit response. Overrides Client:: | |
| Client:: | public | function | Follow redirects? | |
| Client:: | public | function | Sets whether to automatically follow redirects or not. | |
| Client:: | public | function | Goes forward in the browser history. | |
| Client:: | protected | function | Takes a URI and converts it to absolute if it is not already absolute. | |
| Client:: | public | function | Returns the CookieJar instance. | |
| Client:: | public | function | Returns the current Crawler instance. | |
| Client:: | protected | function | ||
| Client:: | public | function | Returns the History instance. | |
| Client:: | public | function | Returns the current BrowserKit Request instance. | |
| Client:: | public | function | Returns the current BrowserKit Response instance. | |
| Client:: | public | function | Overrides Client:: | |
| Client:: | public | function | Overrides Client:: | |
| Client:: | public | function | Gets single server parameter for specified key. | |
| Client:: | public | function | Sets the insulated flag. | |
| Client:: | public | function | Reloads the current browser. | |
| Client:: | public | function | Calls a URI. | |
| Client:: | protected | function | Makes a request from a Request object directly. | |
| Client:: | public | function | Restarts the client. | |
| Client:: | public | function | Sets the maximum number of requests that crawler can follow. | |
| Client:: | public | function | Sets single server parameter. | |
| Client:: | public | function | Sets server parameters. | |
| Client:: | public | function | Submits a form. | |
| Client:: | private | function | ||
| Client:: | public | function | Constructor. Overrides Client:: | |
| TestClient:: | protected | function | Returns the script to execute when the request must be insulated. Overrides Client:: | 
