<commit_before><?php

declare(strict_types=1);

namespace BEAR\Package;

use PHPUnit\Framework\TestCase;
use Ray\Compiler\ScriptInjector;
use RuntimeException;

use function unlink;

class CompilerTest extends TestCase
{
    public function testInvoke(): void
    {
        $compiledFile1 = __DIR__ . '/Fake/fake-app/var/tmp/prod-cli-app/di/FakeVendor_HelloWorld_Resource_Page_Index-.php';
        $compiledFile2 = __DIR__ . '/Fake/fake-app/var/tmp/prod-cli-app/di' . ScriptInjector::MODULE;
        $compiledFile3 = __DIR__ . '/Fake/fake-app/var/tmp/prod-cli-app/di/FakeVendor_HelloWorld_FakeFoo-.php';
        @unlink($compiledFile1);
        @unlink($compiledFile2);
        @unlink($compiledFile3);
        $compiler = new Compiler('FakeVendor\HelloWorld', 'prod-cli-app', __DIR__ . '/Fake/fake-app');
        $compiler->compile();
        $compiler->dumpAutoload();
        $this->assertFileExists($compiledFile1);
        $this->assertFileExists($compiledFile2);
        $this->assertFileExists($compiledFile3);
    }<commit_msg>Suprress echo output<commit_after><?php

declare(strict_types=1);

namespace BEAR\Package;

use PHPUnit\Framework\TestCase;
use Ray\Compiler\ScriptInjector;
use RuntimeException;

use function unlink;

class CompilerTest extends TestCase
{
    public function setUp(): void
    {
        $this->setOutputCallback(static function () {
        });
    }

    public function testInvoke(): void
    {
        $compiledFile1 = __DIR__ . '/Fake/fake-app/var/tmp/prod-cli-app/di/FakeVendor_HelloWorld_Resource_Page_Index-.php';
        $compiledFile2 = __DIR__ . '/Fake/fake-app/var/tmp/prod-cli-app/di' . ScriptInjector::MODULE;
        $compiledFile3 = __DIR__ . '/Fake/fake-app/var/tmp/prod-cli-app/di/FakeVendor_HelloWorld_FakeFoo-.php';
        @unlink($compiledFile1);
        @unlink($compiledFile2);
        @unlink($compiledFile3);
        $compiler = new Compiler('FakeVendor\HelloWorld', 'prod-cli-app', __DIR__ . '/Fake/fake-app');
        $compiler->compile();
        $compiler->dumpAutoload();
        $this->assertFileExists($compiledFile1);
        $this->assertFileExists($compiledFile2);
        $this->assertFileExists($compiledFile3);
    }
{'fraction_non_alphanumeric': 0.1410958904109589, 'fraction_numerical': 0.0091324200913242, 'mean_word_length': 3.4714285714285715, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '5795002', 'n_tokens_mistral': 714, 'n_tokens_neox': 695, 'n_words': 98}