Initial
This commit is contained in:
33
tests/_support/Language/SecondMockLanguage.php
Normal file
33
tests/_support/Language/SecondMockLanguage.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of CodeIgniter 4 framework.
|
||||
*
|
||||
* (c) CodeIgniter Foundation <admin@codeigniter.com>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Tests\Support\Language;
|
||||
|
||||
use CodeIgniter\Language\Language;
|
||||
|
||||
class SecondMockLanguage extends Language
|
||||
{
|
||||
/**
|
||||
* Expose the protected *load* method
|
||||
*/
|
||||
public function loadem(string $file, string $locale = 'en', bool $return = false)
|
||||
{
|
||||
return $this->load($file, $locale, $return);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose the loaded language files
|
||||
*/
|
||||
public function loaded(string $locale = 'en')
|
||||
{
|
||||
return $this->loadedFiles[$locale];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user