PHP Class GuzzleHttp\Tests\Server

Mostra file Open project: nystudio107/instantanalytics Class Usage Examples

Public Properties

Property Type Description
$port
$url

Public Methods

Method Description
enqueue ( array | Psr\Http\Message\ResponseInterface $responses ) Queue an array of responses or a single response on the server.
flush ( ) Flush the received requests from the server
received ( ) : Psr\Http\Message\ResponseInterface[] Get all of the received requests
start ( )
stop ( ) Stop running the node.js server
wait ( $maxTries = 5 )

Private Methods

Method Description
getClient ( )
isListening ( )

Method Details

enqueue() public static method

Any currently queued responses will be overwritten. Subsequent requests on the server will return queued responses in FIFO order.
public static enqueue ( array | Psr\Http\Message\ResponseInterface $responses )
$responses array | Psr\Http\Message\ResponseInterface A single or array of Responses to queue.

flush() public static method

Flush the received requests from the server
public static flush ( )

received() public static method

Get all of the received requests
public static received ( ) : Psr\Http\Message\ResponseInterface[]
return Psr\Http\Message\ResponseInterface[]

start() public static method

public static start ( )

stop() public static method

Stop running the node.js server
public static stop ( )

wait() public static method

public static wait ( $maxTries = 5 )

Property Details

$port public_oe static_oe property

public static $port

$url public_oe static_oe property

public static $url