src/MockHandler.php
public function appendException()
    {
        foreach (func_get_args() as $value) {
            if ($value instanceof \Exception || $value instanceof \Throwable) {
                $this->queue[] = $value;
            } else {
                throw new \InvalidArgumentException('Expected an \Exception or \Throwable.');
            }
        }
    }
public function appendException()
    {
        foreach (func_get_args() as $value) {
            if ($value instanceof \Exception || $value instanceof \Throwable) {
                $this->queue[] = $value;
            } else {
                throw new \InvalidArgumentException('Expected an \Exception or \Throwable.');
            }
        }
    }
public function appendException ( ) { foreach ( func_get_args ( ) as $ value ) { if ( $ value instanceof \ Exception || $ value instanceof \ Throwable ) { $ this -> queue [ ] = $ value ; } else { throw new \ InvalidArgumentException ( 'Expected an \Exception or \Throwable.' ) ; } } }
Adds one or more \Exception or \Throwable to the queue
Adds one or more \ Exception or \ Throwable to the queue