Browse Source

Remove constants dropped in #17063.

They were incorrectly added back when doing 4.next => 5.x merge.
The basics.php file itself is no longer needed.
ADmad 3 years ago
parent
commit
74ff8d36a3
3 changed files with 0 additions and 83 deletions
  1. 0 5
      config/bootstrap.php
  2. 0 24
      src/basics.php
  3. 0 54
      tests/TestCase/BasicsTest.php

+ 0 - 5
config/bootstrap.php

@@ -15,12 +15,7 @@
 
 use Cake\Routing\Router;
 
-/**
- * @var float
- */
 define('TIME_START', microtime(true));
 
-require CAKE . 'basics.php';
-
 // Sets the initial router state so future reloads work.
 Router::reload();

+ 0 - 24
src/basics.php

@@ -1,24 +0,0 @@
-<?php
-declare(strict_types=1);
-
-/**
- * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
- * @link          https://cakephp.org CakePHP(tm) Project
- * @since         0.2.9
- * @license       https://opensource.org/licenses/mit-license.php MIT License
- */
-
-define('SECOND', 1);
-define('MINUTE', 60);
-define('HOUR', 3600);
-define('DAY', 86400);
-define('WEEK', 604800);
-define('MONTH', 2592000);
-define('YEAR', 31536000);

+ 0 - 54
tests/TestCase/BasicsTest.php

@@ -1,54 +0,0 @@
-<?php
-declare(strict_types=1);
-
-/**
- * BasicsTest file
- *
- * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
- * @link          https://cakephp.org CakePHP(tm) Project
- * @since         1.2.0
- * @license       https://opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Test\TestCase;
-
-use Cake\Event\EventManager;
-use Cake\TestSuite\TestCase;
-
-/**
- * BasicsTest class
- */
-class BasicsTest extends TestCase
-{
-    /**
-     * Test that works in tandem with testEventManagerReset2 to
-     * test the EventManager reset.
-     *
-     * The return value is passed to testEventManagerReset2 as
-     * an arguments.
-     */
-    public function testEventManagerReset1(): EventManager
-    {
-        $eventManager = EventManager::instance();
-        $this->assertInstanceOf(EventManager::class, $eventManager);
-
-        return $eventManager;
-    }
-
-    /**
-     * Test if the EventManager is reset between tests.
-     *
-     * @depends testEventManagerReset1
-     */
-    public function testEventManagerReset2(EventManager $prevEventManager): void
-    {
-        $this->assertInstanceOf(EventManager::class, $prevEventManager);
-        $this->assertNotSame($prevEventManager, EventManager::instance());
-    }
-}