Ouzo\Tests\Mock\WhenBuilder::thenThrow PHP Метод

thenThrow() публичный Метод

public thenThrow ( $exception )
    public function thenThrow($exception)
    {
        foreach (func_get_args() as $exception) {
            $this->mock->_stubbed_calls[] = new CallStub($this->methodCall, Functions::throwException($exception));
        }
        return $this;
    }