Continued:
[core.git] / application / tests / classes / resolver / controller / class_TestsConsoleControllerResolver.php
index 3c9023f5085f1af88ffc76ca641abe5f740aba93..f707e1f008c2b11b1472a9416f8059b1c234aad0 100644 (file)
@@ -61,7 +61,7 @@ class TestsConsoleControllerResolver extends BaseControllerResolver implements C
                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);
                }
@@ -69,7 +69,8 @@ class TestsConsoleControllerResolver extends BaseControllerResolver implements C
                // 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
@@ -89,7 +90,7 @@ class TestsConsoleControllerResolver extends BaseControllerResolver implements C
                $controllerName = '';
                $controllerInstance = NULL;
 
-               // Get the command name 
+               // Get namespace and command name
                $controllerName = $this->getControllerName();
 
                // Get the command