Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion system/Config/BaseConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
*
* These can be set within the .env file.
*/
class BaseConfig
abstract class BaseConfig
{

/**
Expand Down
2 changes: 1 addition & 1 deletion system/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
*
* @package CodeIgniter
*/
class Controller
abstract class Controller
{

/**
Expand Down
2 changes: 1 addition & 1 deletion system/Debug/Toolbar/Collectors/BaseCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
/**
* Base Toolbar collector
*/
class BaseCollector
abstract class BaseCollector
{

/**
Expand Down
2 changes: 1 addition & 1 deletion system/HTTP/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @since Version 3.0.0
* @filesource
*/
class Message
abstract class Message
{

/**
Expand Down
2 changes: 1 addition & 1 deletion system/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
* @package CodeIgniter
* @mixin BaseBuilder
*/
class Model
abstract class Model
{

/**
Expand Down
5 changes: 1 addition & 4 deletions tests/system/ControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php namespace CodeIgniter;

use CodeIgniter\Log\Logger;
use Config\App;
use CodeIgniter\HTTP\UserAgent;
use Tests\Support\MockCodeIgniter;
Expand Down Expand Up @@ -54,14 +53,14 @@ protected function setUp()
$this->response = new \CodeIgniter\HTTP\Response($this->config);
$this->logger = \Config\Services::logger();
$this->codeigniter = new MockCodeIgniter($this->config);
$this->controller = new class extends Controller {};
}

//--------------------------------------------------------------------

public function testConstructor()
{
// make sure we can instantiate one
$this->controller = new Controller();
$this->controller->initController($this->request, $this->response, $this->logger);
$this->assertInstanceOf(Controller::class, $this->controller);
}
Expand All @@ -84,7 +83,6 @@ public function testConstructorHTTPS()
//--------------------------------------------------------------------
public function testCachePage()
{
$this->controller = new Controller();
$this->controller->initController($this->request, $this->response, $this->logger);

$this->assertNull($this->controller->cachePage(10));
Expand All @@ -93,7 +91,6 @@ public function testCachePage()
public function testValidate()
{
// make sure we can instantiate one
$this->controller = new Controller();
$this->controller->initController($this->request, $this->response, $this->logger);

// and that we can attempt validation, with no rules
Expand Down
8 changes: 0 additions & 8 deletions tests/system/Database/Live/ModelTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php namespace CodeIgniter\Database\Live;

use CodeIgniter\I18n\Time;
use CodeIgniter\Model;
use CodeIgniter\Test\CIDatabaseTestCase;
use CodeIgniter\Test\ReflectionHelper;
use Tests\Support\Models\EntityModel;
Expand All @@ -22,13 +21,6 @@ class ModelTest extends CIDatabaseTestCase

protected $seed = 'Tests\Support\Database\Seeds\CITestSeeder';

protected function setUp()
{
parent::setUp();

$this->model = new Model($this->db);
}

//--------------------------------------------------------------------

public function testFindReturnsRow()
Expand Down
4 changes: 2 additions & 2 deletions tests/system/HTTP/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ class MessageTest extends \CIUnitTestCase
{

/**
* @var CodeIgniter\HTTP\Message
* @var \CodeIgniter\HTTP\Message
*/
protected $message;

protected function setUp()
{
parent::setUp();

$this->message = new Message();
$this->message = new class extends Message {};
}

//--------------------------------------------------------------------
Expand Down