]> git.mxchange.org Git - core.git/blobdiff - application/tests/class_ApplicationHelper.php
Continued:
[core.git] / application / tests / class_ApplicationHelper.php
index f84fe3c54331d756af074ad6b821e719c81f4ffa..161f9fc2faa71748d86fbf8bc26f91236918520d 100644 (file)
@@ -8,6 +8,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Loader\ClassLoader;
 use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 use Org\Mxchange\CoreFramework\Utils\Strings\StringUtils;
@@ -96,9 +97,6 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
         * @return      void
         */
        public function initApplication () {
-               // Get config instance
-               $cfg = FrameworkBootstrap::getConfigurationInstance();
-
                // Initialize output system
                self::createDebugInstance('ApplicationHelper');
 
@@ -107,12 +105,6 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
                 * method.
                 */
                FrameworkBootstrap::initDatabaseInstance();
-
-               // Register core tests
-               ClassLoader::registerTestsPath('framework/main/tests');
-
-               // Scan for them now
-               ClassLoader::scanTestsClasses();
        }
 
        /**
@@ -156,9 +148,9 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
                $this->getControllerInstance()->handleRequest($requestInstance, $responseInstance);
 
                // -------------------------- Shutdown phase --------------------------
-               self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MAIN: Shutdown in progress ...');
+               self::createDebugInstance(__CLASS__, __LINE__)->debugMessage('MAIN: Shutdown in progress ...');
                $this->getControllerInstance()->executeShutdownFilters($requestInstance, $responseInstance);
-               self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MAIN: Shutdown completed. (This is the last line.)');
+               self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('MAIN: Shutdown completed. (This is the last line.)');
        }
 
        /**
@@ -192,7 +184,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
         * @todo        Nothing to add?
         */
        public function assignExtraTemplateData (CompileableTemplate $templateInstance) {
-               $this->partialStub('Unfinished method. templateInstance=' . $templateInstance->__toString());
+               DebugMiddleware::getSelfInstance()->partialStub('Unfinished method. templateInstance=' . $templateInstance->__toString());
        }
 
 }