pock

HttpRejectedPromise
in package
implements Promise

HTTPlug promise representing an exception from a matched mock.

Tags
category

HttpRejectedPromise

Table of Contents

Interfaces

Promise

Methods

__construct()  : mixed
HttpRejectedPromise constructor.
getState()  : string
then()  : mixed
wait()  : void

Methods

__construct()

HttpRejectedPromise constructor.

public __construct(Throwable $throwable) : mixed
Parameters
$throwable : Throwable

then()

public then([callable|null $onFulfilled = null ][, callable|null $onRejected = null ]) : mixed
Parameters
$onFulfilled : callable|null = null
$onRejected : callable|null = null
Tags
inheritDoc

wait()

public wait([mixed $unwrap = true ]) : void
Parameters
$unwrap : mixed = true
Tags
inheritDoc
throws
Throwable
SuppressWarnings

(PHPMD.BooleanArgumentFlag)

On this page

Search results