<commit_before><?php
namespace SkinnyTest\Module;

use Skinny\Core\Configure;
use Skinny\Core\Plugin;
use Skinny\Module\ModuleManager;
use Skinny\Network\Wrapper;
use Skinny\TestSuite\TestCase;
use SkinnyTest\Lib\Utility;

class ModuleManagerTest extends TestCase
{
    /**
     * tearDown
     *
     * @return void
     */
    public function tearDown()
    {
        Plugin::unload();
        Configure::write('plugins', []);
    }

    /**
     * testPriorityList method
     *
     * @return void
     */
    public function testPriorityList()
    {
        $ModuleManager = new ModuleManager();
        $expected = [
            'Basic',
            'Test'
        ];
        $this->assertSame($expected, $ModuleManager->getLoadedModules());

        $ModuleManager = new ModuleManager(['Test']);
        $expected = [
            'Test',
            'Basic'
        ];
        $this->assertArraySubset($expected, $ModuleManager->getLoadedModules());
    }

    /**
     * testPrefixArgument method
     *
     * @return void
     */
    public function testPrefixArgument()
    {
        $ModuleManager = new ModuleManager();
        $ModuleManager->addPrefixArgument('argument test');
        $this->assertSame('argument test', Utility::callProtectedProperty($ModuleManager, 'prefixArgument'));
    }
<commit_msg>put back assertSame<commit_after><?php
namespace SkinnyTest\Module;

use Skinny\Core\Configure;
use Skinny\Core\Plugin;
use Skinny\Module\ModuleManager;
use Skinny\Network\Wrapper;
use Skinny\TestSuite\TestCase;
use SkinnyTest\Lib\Utility;

class ModuleManagerTest extends TestCase
{
    /**
     * tearDown
     *
     * @return void
     */
    public function tearDown()
    {
        Plugin::unload();
        Configure::write('plugins', []);
    }

    /**
     * testPriorityList method
     *
     * @return void
     */
    public function testPriorityList()
    {
        $ModuleManager = new ModuleManager();
        $expected = [
            'Basic',
            'Test'
        ];
        $this->assertSame($expected, $ModuleManager->getLoadedModules());

        $ModuleManager = new ModuleManager(['Test']);
        $expected = [
            'Test',
            'Basic'
        ];
        $this->assertSame($expected, $ModuleManager->getLoadedModules());
    }

    /**
     * testPrefixArgument method
     *
     * @return void
     */
    public function testPrefixArgument()
    {
        $ModuleManager = new ModuleManager();
        $ModuleManager->addPrefixArgument('argument test');
        $this->assertSame('argument test', Utility::callProtectedProperty($ModuleManager, 'prefixArgument'));
    }

{'fraction_non_alphanumeric': 0.12873911397198032, 'fraction_numerical': 0.0, 'mean_word_length': 2.3915275994865213, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '4607034', 'n_tokens_mistral': 740, 'n_tokens_neox': 723, 'n_words': 134}