ZendTest\Stratigility\NextTest::testNextCanUseADelegateForTheDoneHandler PHP Method

testNextCanUseADelegateForTheDoneHandler() public method

    public function testNextCanUseADelegateForTheDoneHandler()
    {
        $delegate = $this->prophesize(DelegateInterface::class);
        $delegate->process(Argument::type(RequestInterface::class))->willReturn('FOOBAR');
        $next = new Next($this->queue, $delegate->reveal());
        $this->assertEquals('FOOBAR', $next->process($this->request));
    }
NextTest