<commit_before><?php namespace Mongolid\Mongolid\Container;

use TestCase;
use Mockery as m;

class IocTest extends TestCase
{
    public function testShouldCallStaticWithTheInstanceSetted()
    {
        // Arrange
        $instance = m::mock('Illuminate\Container\Container');
        Ioc::setContainer($instance);

        // Expect
        $instance->shouldReceive('someMethod')
            ->once()
            ->andReturn('cool');

        // Act
        $result = Ioc::someMethod();

        // Assert
        $this->assertEquals('cool', $result);
    }
}
<commit_msg>enhance coverage<commit_after><?php namespace Mongolid\Mongolid\Container;

use TestCase;
use Mockery as m;

class IocTest extends TestCase
{
    public function testShouldCallStaticWithTheInstanceSetted()
    {
        // Arrange
        $instance = m::mock('Illuminate\Container\Container');
        Ioc::setContainer($instance);

        // Expect
        $instance->shouldReceive('someMethod')
            ->once()
            ->andReturn('cool');

        // Act
        $result = Ioc::someMethod(1);
        $result = Ioc::someMethod(1, 2);
        $result = Ioc::someMethod(1, 2, 3);
        $result = Ioc::someMethod(1, 2, 3, 4);
        $result = Ioc::someMethod(1, 2, 3, 4, 5);
        $result = Ioc::someMethod(1, 2, 3, 4, 5, 6);
        $result = Ioc::someMethod();

        // Assert
        $this->assertEquals('cool', $result);
    }
}

{'fraction_non_alphanumeric': 0.14656381486676018, 'fraction_numerical': 0.014726507713884993, 'mean_word_length': 2.3895486935866983, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '654592', 'n_tokens_mistral': 448, 'n_tokens_neox': 426, 'n_words': 88}