]> git.mxchange.org Git - core.git/blobdiff - tests/framework/bootstrap/class_FrameworkBootstrapTest.php
Continued:
[core.git] / tests / framework / bootstrap / class_FrameworkBootstrapTest.php
index e96065a511a618ce6a1f6df38e13a7b3a35178a9..e7a8ccfb0635c0c5f30e5cf9e6282af001eaa15e 100644 (file)
@@ -1,11 +1,9 @@
 <?php
-
 // Same namespace as target class
 namespace Org\Mxchange\CoreFramework\Bootstrap;
 
 // Inport framework stuff
 use Org\Mxchange\CoreFramework\Console\Tools\ConsoleTools;
-use Org\Mxchange\CoreFramework\Loader\ClassLoader;
 use Org\Mxchange\CoreFramework\Generic\NullPointerException;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 
@@ -17,7 +15,7 @@ use PHPUnit\Framework\TestCase;
 use \InvalidArgumentException;
 
 /*
- * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
+ * Copyright (C) 2017 - 2023 Core Developer Team
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -64,12 +62,6 @@ class FrameworkBootstrapTest extends TestCase {
                // Call parent method
                parent::setUpBeforeClass();
 
-               /*
-                * Disable strict naming-convention check in own class loader, because
-                * PHP_Invoker doesn't have namespaces.
-                */
-               ClassLoader::enableStrictNamingConventionCheck(FALSE);
-
                // Lookup own IP address
                self::$ipAddress = ConsoleTools::acquireSelfIpAddress();
 
@@ -77,86 +69,6 @@ class FrameworkBootstrapTest extends TestCase {
                //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__);
        }
 
-       /**
-        * Tests setting a NULL default timezone
-        */
-       public function testSettingNullDefaultTimezone () {
-               // Will throw this exception
-               $this->expectException(NullPointerException::class);
-
-               // Test it
-               FrameworkBootstrap::setDefaultTimezone(NULL);
-       }
-
-       /**
-        * Tests setting a boolean default timezone
-        */
-       public function testSettingBooleanDefaultTimezone () {
-               // Will throw this exception
-               $this->expectException(InvalidArgumentException::class);
-
-               // Test it
-               FrameworkBootstrap::setDefaultTimezone(FALSE);
-       }
-
-       /**
-        * Tests setting a decimal default timezone
-        */
-       public function testSettingDecimalDefaultTimezone () {
-               // Will throw this exception
-               $this->expectException(InvalidArgumentException::class);
-
-               // Test it
-               FrameworkBootstrap::setDefaultTimezone(12345);
-       }
-
-       /**
-        * Tests setting a float default timezone
-        */
-       public function testSettingFloatDefaultTimezone () {
-               // Will throw this exception
-               $this->expectException(InvalidArgumentException::class);
-
-               // Test it
-               FrameworkBootstrap::setDefaultTimezone(123.45);
-       }
-
-       /**
-        * Tests setting an array default timezone
-        */
-       public function testSettingArrayDefaultTimezone () {
-               // Will throw this exception
-               $this->expectException(InvalidArgumentException::class);
-
-               // Test it
-               FrameworkBootstrap::setDefaultTimezone(array());
-       }
-
-       /**
-        * Tests setting an object default timezone
-        */
-       public function testSettingObjectDefaultTimezone () {
-               // Will throw this exception
-               $this->expectException(InvalidArgumentException::class);
-
-               // Test it
-               FrameworkBootstrap::setDefaultTimezone($this);
-       }
-
-       /**
-        * Tests setting a resource default timezone
-        */
-       public function testSettingResourceDefaultTimezone () {
-               // Will throw this exception
-               $this->expectException(InvalidArgumentException::class);
-
-               // Init some resource
-               $resource = fopen(__FILE__, 'r');
-
-               // Test it
-               FrameworkBootstrap::setDefaultTimezone($resource);
-       }
-
        /**
         * Tests setting an empty default timezone
         */
@@ -201,7 +113,7 @@ class FrameworkBootstrapTest extends TestCase {
 
        /**
         * Re-tests if detectServerAddress() is returning what it should for tests.
-        * This will always be 127.0.0.1. This call should not invoke
+        * This will always be 127.0.0.1. This method should not invoke
         * ConsoleTools's method as the configuration entry is already cached.
         */
        public function testConfigDetectServerAddressCached () {