spec\PhpSpec\Exception\ExceptionFactorySpec::it_creates_a_setting_property_on_non_object_exception PHP Метод

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

public it_creates_a_setting_property_on_non_object_exception ( PhpSpec\Formatter\Presenter\Presenter $presenter )
$presenter PhpSpec\Formatter\Presenter\Presenter
    function it_creates_a_setting_property_on_non_object_exception(Presenter $presenter)
    {
        $presenter->presentString("{$this->fixture->property}")->shouldBeCalled()->willReturn("\"{$this->fixture->property}\"");
        $fixtureMessage = "Setting property \"{$this->fixture->property}\" on a non-object.";
        $exception = $this->settingPropertyOnNonObject($this->fixture->property);
        $exception->shouldHaveType('PhpSpec\\Exception\\Wrapper\\SubjectException');
        $exception->getMessage()->shouldBe($fixtureMessage);
    }