settingPropertyOnNonObject() public method

public settingPropertyOnNonObject ( string $property ) : PhpSpec\Exception\Wrapper\SubjectException
$property string
return PhpSpec\Exception\Wrapper\SubjectException
Esempio n. 1
0
 /**
  * @param string $property
  * @return \PhpSpec\Exception\Wrapper\SubjectException
  */
 private function settingPropertyOnNonObject($property)
 {
     return $this->exceptionFactory->settingPropertyOnNonObject($property);
 }
Esempio n. 2
0
 function it_delegates_throwing_setting_property_on_non_object_exception(ExceptionFactory $exceptions)
 {
     $exceptions->settingPropertyOnNonObject('foo')->willReturn(new \PhpSpec\Exception\Wrapper\SubjectException('Setting property "foo" on a non-object.'))->shouldBeCalled();
     $this->shouldThrow('\\PhpSpec\\Exception\\Wrapper\\SubjectException')->duringSet('foo');
 }