if (empty($controllerName)) {
// Then thrown an exception here
throw new EmptyVariableException(array($resolverInstance, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
- } elseif ($resolverInstance->isControllerValid(__NAMESPACE__, $controllerName) === FALSE) {
+ } elseif ($resolverInstance->isControllerValid('CoreFramework\Tests\Controller', $controllerName) === FALSE) {
// Invalid command found
throw new InvalidControllerException(array($resolverInstance, $controllerName), self::EXCEPTION_INVALID_CONTROLLER);
}
// Set the application instance
$resolverInstance->setApplicationInstance($applicationInstance);
- // Set command name
+ // Set namespace and controller name
+ $resolverInstance->setNamespace('CoreFramework\Tests\Controller');
$resolverInstance->setControllerName($controllerName);
// Return the prepared instance
$controllerName = '';
$controllerInstance = NULL;
- // Get the command name
+ // Get namespace and command name
$controllerName = $this->getControllerName();
// Get the command