src/Mocks/ConcurrentRegionMock.php
private function throwException($method)
    {
        if (isset($this->exceptions[$method]) && ! empty($this->exceptions[$method])) {
            $exception = array_shift($this->exceptions[$method]);

            if ($exception != null) {
                throw $exception;
            }
        }
    }
private function throwException($method)
    {
        if (isset($this->exceptions[$method]) && ! empty($this->exceptions[$method])) {
            $exception = array_shift($this->exceptions[$method]);

            if ($exception != null) {
                throw $exception;
            }
        }
    }
private function throwException ( $ method ) { if ( isset ( $ this -> exceptions [ $ method ] ) && ! empty ( $ this -> exceptions [ $ method ] ) ) { $ exception = array_shift ( $ this -> exceptions [ $ method ] ) ; if ( $ exception != null ) { throw $ exception ; } } }
Dequeue an exception for a specific method invocation

@param string $method
@param mixed $default

@return mixed
Dequeue an exception for a specific method invocation