PhpSpec\Exception\ExceptionFactory::gettingPropertyOnNonObject PHP Method

gettingPropertyOnNonObject() public method

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

Usage Example

Esempio n. 1
0
 /**
  * @param string $property
  * @return \PhpSpec\Exception\Wrapper\SubjectException
  */
 private function accessingPropertyOnNonObject($property)
 {
     return $this->exceptionFactory->gettingPropertyOnNonObject($property);
 }
All Usage Examples Of PhpSpec\Exception\ExceptionFactory::gettingPropertyOnNonObject