public function expect() { if (!$this->openMethod) { throw new \Exception(sprintf('Cannot set argument expectations without first opening a call')); } $this->expectation = func_get_args(); return $this; }