public function stubs($method) { if (empty($this->expectations[$method])) { $expectation = new Expectation($this, $method); $expectation->atLeast(0); $this->expectations[$method] = $expectation; } else { $expectation = $this->expectations[$method]; } return $expectation; }