ZendTest\Stratigility\NextTest::testEnablingRaiseThrowablesFlagWillCauseInvocationToRaiseThrowableForThrowableErrorArguments PHP Method

testEnablingRaiseThrowablesFlagWillCauseInvocationToRaiseThrowableForThrowableErrorArguments() public method

    public function testEnablingRaiseThrowablesFlagWillCauseInvocationToRaiseThrowableForThrowableErrorArguments($throwable)
    {
        $next = new Next($this->queue, $this->prophesize(DelegateInterface::class)->reveal());
        $next->raiseThrowables();
        try {
            $next($this->request, $this->response, $throwable);
            $this->fail('Throwable not raised when it was expected');
        } catch (\Throwable $e) {
            $this->assertSame($throwable, $e);
        } catch (\Exception $e) {
            $this->assertSame($throwable, $e);
        }
    }
NextTest