public function gettingPropertyOnNonObject($property) { return new SubjectException(sprintf('Getting property %s on a non-object.', $this->presenter->presentString($property))); }
/** * @param string $property * @return \PhpSpec\Exception\Wrapper\SubjectException */ private function accessingPropertyOnNonObject($property) { return $this->exceptionFactory->gettingPropertyOnNonObject($property); }