ZendTest\Stratigility\NextTest::testProcessRaisesExceptionPriorToCallingDoneHandlerIfNotAServerRequest PHP Method

testProcessRaisesExceptionPriorToCallingDoneHandlerIfNotAServerRequest() public method

    public function testProcessRaisesExceptionPriorToCallingDoneHandlerIfNotAServerRequest()
    {
        $request = $this->prophesize(RequestInterface::class);
        $request->getUri()->shouldNotBeCalled();
        $done = function ($req, $res, $err = null) {
            Assert::fail('Reached $done handler, and should not have.');
        };
        $next = new Next($this->queue, $done);
        $next->setResponsePrototype($this->prophesize(ResponseInterface::class)->reveal());
        $this->setExpectedException(Exception\InvalidRequestTypeException::class);
        $next->process($request->reveal());
    }
NextTest