You are here

class TestClient in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\TestClient
  2. 8 vendor/behat/mink-browserkit-driver/tests/Custom/ErrorHandlingTest.php \Behat\Mink\Tests\Driver\Custom\TestClient
  3. 8 vendor/symfony/http-kernel/Tests/Fixtures/TestClient.php \Symfony\Component\HttpKernel\Tests\Fixtures\TestClient
Same name and namespace in other branches
  1. 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

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\Fixtures
View 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

Namesort descending Modifiers Type Description Overrides
Client::$cookieJar protected property
Client::$crawler protected property
Client::$followRedirects protected property
Client::$history protected property
Client::$insulated protected property
Client::$internalRequest protected property
Client::$internalResponse protected property
Client::$isMainRequest private property
Client::$kernel protected property
Client::$maxRedirects private property
Client::$redirect protected property
Client::$redirectCount private property
Client::$request protected property
Client::$response protected property
Client::$server protected property
Client::back public function Goes back in the browser history.
Client::click public function Clicks on a given link.
Client::createCrawlerFromContent protected function Creates a crawler.
Client::doRequest protected function Makes a request. Overrides Client::doRequest
Client::doRequestInProcess protected function Makes a request in another process.
Client::extractHost private function
Client::filterFiles protected function Filters an array of files.
Client::filterRequest protected function Converts the BrowserKit request to a HttpKernel request. Overrides Client::filterRequest
Client::filterResponse protected function Converts the HttpKernel response to a BrowserKit response. Overrides Client::filterResponse
Client::followRedirect public function Follow redirects?
Client::followRedirects public function Sets whether to automatically follow redirects or not.
Client::forward public function Goes forward in the browser history.
Client::getAbsoluteUri protected function Takes a URI and converts it to absolute if it is not already absolute.
Client::getCookieJar public function Returns the CookieJar instance.
Client::getCrawler public function Returns the current Crawler instance.
Client::getHandleScript protected function
Client::getHistory public function Returns the History instance.
Client::getInternalRequest public function Returns the current BrowserKit Request instance.
Client::getInternalResponse public function Returns the current BrowserKit Response instance.
Client::getRequest public function Overrides Client::getRequest
Client::getResponse public function Overrides Client::getResponse
Client::getServerParameter public function Gets single server parameter for specified key.
Client::insulate public function Sets the insulated flag.
Client::reload public function Reloads the current browser.
Client::request public function Calls a URI.
Client::requestFromRequest protected function Makes a request from a Request object directly.
Client::restart public function Restarts the client.
Client::setMaxRedirects public function Sets the maximum number of requests that crawler can follow.
Client::setServerParameter public function Sets single server parameter.
Client::setServerParameters public function Sets server parameters.
Client::submit public function Submits a form.
Client::updateServerFromUri private function
Client::__construct public function Constructor. Overrides Client::__construct
TestClient::getScript protected function Returns the script to execute when the request must be insulated. Overrides Client::getScript