PHP Class GuzzleHttp\Tests\Server

Afficher le fichier Open project: nystudio107/instantanalytics Class Usage Examples

Méthodes publiques

Свойство Type Description
$port
$url

Méthodes publiques

Méthode 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

Méthode Description
getClient ( )
isListening ( )

Method Details

enqueue() public static méthode

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 méthode

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

received() public static méthode

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

start() public static méthode

public static start ( )

stop() public static méthode

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

wait() public static méthode

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