Phalcon\Test\Unit\Mvc\DispatcherTest::testDefaultsResolve PHP Method

testDefaultsResolve() public method

public testDefaultsResolve ( )
    public function testDefaultsResolve()
    {
        $this->specify("Dispatcher defaults are not resolved correctly", function () {
            $di = new Di();
            $dispatcher = new Dispatcher();
            $dispatcher->setDI($di);
            $di->set("dispatcher", $dispatcher);
            $dispatcher->setDefaultNamespace("Foo");
            $value = $dispatcher->getControllerClass();
            expect($value)->equals("Foo\\IndexController");
        });
    }