ZendTest\Stratigility\NextTest::testSettingRaiseThrowablesFlagSetsCorrespondingFlagOnComposedDispatchInstance PHP Method

testSettingRaiseThrowablesFlagSetsCorrespondingFlagOnComposedDispatchInstance() public method

    public function testSettingRaiseThrowablesFlagSetsCorrespondingFlagOnComposedDispatchInstance()
    {
        $next = new Next($this->queue, $this->prophesize(DelegateInterface::class)->reveal());
        $next->raiseThrowables();
        $this->assertAttributeSame(true, 'raiseThrowables', $next);
        $r = new ReflectionProperty($next, 'dispatch');
        $r->setAccessible(true);
        $dispatch = $r->getValue($next);
        $this->assertAttributeSame(true, 'raiseThrowables', $dispatch);
    }
NextTest