Ouzo\ControllerFactoryTest::shouldResolveControllerWithNamespace PHP Method

shouldResolveControllerWithNamespace() public method

    public function shouldResolveControllerWithNamespace()
    {
        //given
        $routeRule = new RouteRule('GET', '/api/multiple_ns/test_action', 'api/multiple_ns', 'test_action', true);
        $factory = $this->injector->getInstance('\\Ouzo\\ControllerFactory');
        //when
        $currentController = $factory->createController($routeRule);
        //then
        $this->assertInstanceOf('\\Ouzo\\Api\\MultipleNsController', $currentController);
    }