<commit_before><?php namespace Arcanedev\LaravelLang\Tests\Commands;

use Arcanedev\LaravelLang\Contracts\TransChecker;
use Arcanedev\LaravelLang\Tests\TestCase;

/**
 * Class     CheckCommandTest
 *
 * @package  Arcanedev\LaravelLang\Tests\Commands
 * @author   ARCANEDEV <<EMAIL>>
 */
class CheckCommandTest extends TestCase
{
    /* -----------------------------------------------------------------
     |  Tests
     | -----------------------------------------------------------------
     */

    /** @test */
    public function it_can_run_command()
    {
        $this->mock(TransChecker::class, function ($mock) {
            $mock->shouldReceive('check')->andReturn([]);

            return $mock;
        });

        $this->artisan('trans:check')
             ->assertExitCode(0);
    }

    /** @test */
    public function it_has_an_exit_code_if_we_miss_something()
    {
        $this->mock(TransChecker::class, function ($mock) {
            $mock->shouldReceive('check')->andReturn([
                'en' => [
                    'file.message',
                ],
            ]);

            return $mock;
        });

        $this->artisan('trans:check')
             ->assertExitCode(1);
    }

    /** @test */
    public function it_has_an_exit_code_if_we_miss_something()
    {
        $this->doesNotPerformAssertions();
        $this->mock(TransChecker::class, function ($mock) {
            $mock->shouldReceive('check')->andReturn([
                'en' => [
                    'file.message',
                ],
            ]);
            return $mock;
        });
        $this->artisan('trans:check')
            ->assertExitCode(1);
    }
}<commit_msg>Remove the duplicate it_has_an_exit_code_if_we_miss_something test in the CheckCommandTest<commit_after><?php namespace Arcanedev\LaravelLang\Tests\Commands;

use Arcanedev\LaravelLang\Contracts\TransChecker;
use Arcanedev\LaravelLang\Tests\TestCase;

/**
 * Class     CheckCommandTest
 *
 * @package  Arcanedev\LaravelLang\Tests\Commands
 * @author   ARCANEDEV <<EMAIL>>
 */
class CheckCommandTest extends TestCase
{
    /* -----------------------------------------------------------------
     |  Tests
     | -----------------------------------------------------------------
     */

    /** @test */
    public function it_can_run_command()
    {
        $this->mock(TransChecker::class, function ($mock) {
            $mock->shouldReceive('check')->andReturn([]);

            return $mock;
        });

        $this->artisan('trans:check')
             ->assertExitCode(0);
    }

    /** @test */
    public function it_has_an_exit_code_if_we_miss_something()
    {
        $this->mock(TransChecker::class, function ($mock) {
            $mock->shouldReceive('check')->andReturn([
                'en' => [
                    'file.message',
                ],
            ]);

            return $mock;
        });

        $this->artisan('trans:check')
             ->assertExitCode(1);
    }
}
{'fraction_non_alphanumeric': 0.21739130434782608, 'fraction_numerical': 0.0016722408026755853, 'mean_word_length': 1.5412064570943076, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 36, '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': '6797544', 'n_tokens_mistral': 841, 'n_tokens_neox': 817, 'n_words': 112}