ZendTest\Stratigility\NextTest::testDoneHandlerIsInvokedWhenQueueIsExhausted PHP Method

testDoneHandlerIsInvokedWhenQueueIsExhausted() public method

    public function testDoneHandlerIsInvokedWhenQueueIsExhausted()
    {
        // e.g., 0 length array, or all handlers call next
        $triggered = null;
        $done = function ($req, $res, $err = null) use(&$triggered) {
            $triggered = true;
        };
        $next = new Next($this->queue, $done);
        $next($this->request, $this->response);
        $this->assertTrue($triggered);
    }
NextTest