SimpleErrorQueue::extractExpectation PHP Method

extractExpectation() protected method

Pulls the earliest expectation from the queue.
protected extractExpectation ( ) : SimpleExpectation
return SimpleExpectation False if none.
    protected function extractExpectation()
    {
        if (count($this->expectation_queue)) {
            return array_shift($this->expectation_queue);
        }
        return false;
    }