Phalcon\Test\FunctionalTestCase::assertDispatchIsForwarded PHP Method

assertDispatchIsForwarded() public method

Asserts that the dispatch is forwarded
    public function assertDispatchIsForwarded()
    {
        /* @var $dispatcher \Phalcon\Mvc\Dispatcher */
        $dispatcher = $this->di->getShared('dispatcher');
        $actual = $dispatcher->wasForwarded();
        if (!$actual) {
            throw new \PHPUnit_Framework_ExpectationFailedException('Failed asserting dispatch was forwarded');
        }
        $this->assertTrue($actual);
    }