/** * Tests getting an instance of a controller. */ public function testGetControllerInstance() { $controllerName = 'mock_controller'; // Set the namesapce. $this->application->setNamespace('\\LmMvcTests\\Mock'); $controller = $this->application->getControllerInstance($controllerName); // It should have loaded the MockController controller. $this->assertInstanceOf($this->application->getNamespace() . '\\MockController', $controller); }