<commit_before><?php
namespace App\Test\TestCase\Feature\Type;

use App\Feature\Factory;
use Cake\Controller\Component\AuthComponent;
use Cake\Http\ServerRequest;
use Cake\TestSuite\TestCase;

/**
 * App\Feature\Type\BatchFeature Test Case
 */
class BaseFeatureTest extends TestCase
{
    public function testIsActive()
    {
        $auth = $this->createMock(AuthComponent::class);
        $request = $this->createMock(ServerRequest::class);

        Factory::init($auth, $request);

        $feature = Factory::get('Base');<commit_msg>Remove mocking of unused classes (task #4839)<commit_after><?php
namespace App\Test\TestCase\Feature\Type;

use App\Feature\Factory;
use Cake\TestSuite\TestCase;

class BaseFeatureTest extends TestCase
{
    public function testIsActive()
    {
        Factory::init();

        $feature = Factory::get('Base');
{'fraction_non_alphanumeric': 0.12971698113207547, 'fraction_numerical': 0.0047169811320754715, 'mean_word_length': 4.208588957055214, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4547591', 'n_tokens_mistral': 250, 'n_tokens_neox': 240, 'n_words': 51}