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

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

public it_creates_a_calling_method_on_non_object_exception ( PhpSpec\Formatter\Presenter\Presenter $presenter )
$presenter PhpSpec\Formatter\Presenter\Presenter
    function it_creates_a_calling_method_on_non_object_exception(Presenter $presenter)
    {
        $presenter->presentString("{$this->fixture->method}()")->shouldBeCalled()->willReturn("\"{$this->fixture->method}()\"");
        $fixtureMessage = "Call to a member function \"{$this->fixture->method}()\" on a non-object.";
        $exception = $this->callingMethodOnNonObject($this->fixture->method);
        $exception->shouldHaveType('PhpSpec\\Exception\\Wrapper\\SubjectException');
        $exception->getMessage()->shouldBe($fixtureMessage);
    }