Newer
Older
framework / _support / Config / MockServices.php
@Jim Parry Jim Parry on 4 Apr 2019 632 bytes Release 4.0.0-beta.2
<?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());
	}

}