spec\PhpSpec\Wrapper\Subject\CallerSpec::it_delegates_throwing_setting_property_on_non_object_exception PHP Метод

it_delegates_throwing_setting_property_on_non_object_exception() публичный Метод

public it_delegates_throwing_setting_property_on_non_object_exception ( ExceptionFactory $exceptions )
$exceptions PhpSpec\Exception\ExceptionFactory
    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');
    }