X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Ftests%2Fclass_ApplicationHelper.php;h=a2765cc2f607ac8d1d92ec893a9cf5e7ccc8bc11;hb=7da942b8177f7272700fd0bb7b0743bee9b58e4c;hp=c334b9c09b3c9dc87c767891116e83ae8d204082;hpb=fe28fd87dd0c4e129cef6ee7bd4e257a3f3ba280;p=core.git diff --git a/application/tests/class_ApplicationHelper.php b/application/tests/class_ApplicationHelper.php index c334b9c0..a2765cc2 100644 --- a/application/tests/class_ApplicationHelper.php +++ b/application/tests/class_ApplicationHelper.php @@ -1,4 +1,15 @@ setRequestInstance($requestInstance); @@ -170,7 +181,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica } // END - if // ... and a new response object - $responseClass = sprintf('%sResponse', self::convertToClassName($response)); + $responseClass = sprintf('CoreFramework\Response\%sResponse', self::convertToClassName($response)); $responseInstance = ObjectFactory::createObjectByName($responseClass, array($this)); // Remember response instance here @@ -189,7 +200,14 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica } // END - if // Get a controller resolver - $resolverClass = self::convertToClassName($this->getAppShortName() . '_' . $responseType . '_controller_resolver'); + $resolverClass = sprintf( + 'CoreFramework\Tests\Resolver\Controller\%s', + self::convertToClassName(sprintf( + '%s_%s_controller_resolver', + $this->getAppShortName(), + $responseType + )) + ); $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this)); // Get a controller instance as well @@ -201,9 +219,9 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica // -------------------------- Shutdown phase -------------------------- // Shutting down the hub by saying "good bye" to all connected peers // and other hubs, flushing all queues and caches. - self::createDebugInstance(__CLASS__)->debugOutput('MAIN: Shutdown in progress, main loop exited.'); + self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MAIN: Shutdown in progress, main loop exited.'); $this->getControllerInstance()->executeShutdownFilters($requestInstance, $responseInstance); - self::createDebugInstance(__CLASS__)->debugOutput('MAIN: Shutdown completed. (This is the last line.)'); + self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MAIN: Shutdown completed. (This is the last line.)'); } /** @@ -239,7 +257,5 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica public function assignExtraTemplateData (CompileableTemplate $templateInstance) { $this->partialStub('Unfinished method. templateInstance=' . $templateInstance->__toString()); } -} -// [EOF] -?> +}