Newer
Older
framework / tests / _support / Config / MockServices.php
@Jim Parry Jim Parry on 25 Jul 2019 632 bytes Release 4.0.0-beta.4
<?php
namespace Tests\Support\Config;

use \CodeIgniter\Config\BaseService;

class MockServices extends BaseService
{

	public $psr4     = [
		'Tests/Support' => TESTPATH . '_support/',
	];
	public $classmap = [];

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

	public function __construct()
	{
		// Don't call the parent since we don't want the default mappings.
		// parent::__construct();
	}

	//--------------------------------------------------------------------
	public static function locator(bool $getShared = true)
	{
		return new \CodeIgniter\Autoloader\FileLocator(static::autoloader());
	}

}