ClockMock::microtime()

static microtime($asFloat = false) Parameters $asFloat

ClockMock

class ClockMock Methods static withClockMock($enable = null) static time() static sleep($s) static usleep($us) static microtime($asFloat = false) static register($class) Details static withClockMock($enable = null) Parameters $enable static time() static sleep($s) Parameters $s static usleep($us)

Client::reload()

Crawler reload() Reloads the current browser. Return Value Crawler

Client::isFollowingRedirects()

bool isFollowingRedirects() Returns whether client automatically follows redirects or not. Return Value bool

Client::restart()

restart() Restarts the client. It flushes history and all cookies.

Client::request()

Crawler request(string $method, string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, bool $changeHistory = true) Calls a URI. Parameters string $method The request method string $uri The URI to fetch array $parameters The Request parameters array $files The files array $server The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does) string $content The raw body data bool $changeHistory Whe

Client::setServerParameter()

setServerParameter(string $key, string $value) Sets single server parameter. Parameters string $key A key of the parameter string $value A value of the parameter

Client::setMaxRedirects()

setMaxRedirects(int $maxRedirects) Sets the maximum number of requests that crawler can follow. Parameters int $maxRedirects

Client::getResponse()

object|null getResponse() Returns the current origin response instance. The origin response is the response instance that is returned by the code that handles requests. Return Value object|null A response instance See also doRequest()

Client::getRequest()

object|null getRequest() Returns the current origin Request instance. The origin request is the request instance that is sent to the code that handles requests. Return Value object|null A Request instance See also doRequest()