public static function createWithMiddleware(
        array $queue = null,
        callable $onFulfilled = null,
        callable $onRejected = null
    ) {
        return HandlerStack::create(new self($queue, $onFulfilled, $onRejected));
    }
public static function createWithMiddleware(
        array $queue = null,
        callable $onFulfilled = null,
        callable $onRejected = null
    ) {
        return HandlerStack::create(new self($queue, $onFulfilled, $onRejected));
    }
public static function createWithMiddleware ( array $ queue = null , callable $ onFulfilled = null , callable $ onRejected = null ) { return HandlerStack :: create ( new self ( $ queue , $ onFulfilled , $ onRejected ) ) ; }
Creates a new MockHandler that uses the default handler stack list of
middlewares.

@param array $queue Array of responses, callables, or exceptions.
@param callable $onFulfilled Callback to invoke when the return value is fulfilled.
@param callable $onRejected  Callback to invoke when the return value is rejected.

@return HandlerStack
Creates a new MockHandler that uses the default handler stack list of middlewares .