<commit_before><?php

namespace Bitverse\IdenticonBundle\Tests\DependencyInjection\Compiler;

use Bitverse\Identicon\Color\Color;
use Bitverse\IdenticonBundle\DependencyInjection\Compiler\IdenticonCompilerPass;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;

class IdenticonCompilerPassTest extends AbstractCompilerPassTestCase
{
    /**
     * @test
     */
    public function processTest()
    {
        $this->setDefinition('bitverse.identicon', new Definition());

        $this->setParameter(
            'bitverse_identicon.generator.background_color',
            '#444444'
        );

        $this->compile();

        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall(
            'bitverse.identicon',
            'setBackgroundColor',
            [Color::parseHex('#444444')]
        );
    }

    protected function registerCompilerPass(ContainerBuilder $container)<commit_msg>Updated tests<commit_after><?php

namespace Bitverse\IdenticonBundle\Tests\DependencyInjection\Compiler;

use Bitverse\Identicon\Color\Color;
use Bitverse\IdenticonBundle\DependencyInjection\Compiler\IdenticonCompilerPass;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;

class IdenticonCompilerPassTest extends AbstractCompilerPassTestCase
{
    /**
     * @test
     */
    public function processTest()
    {
        $this->setDefinition('bitverse.identicon', new Definition());

        $this->setParameter(
            'bitverse_identicon.generator.background_color',
            '#444444'
        );

        $this->compile();

        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall(
            'bitverse.identicon',
            'setBackgroundColor',
            ['#444444']
        );
    }

    protected function registerCompilerPass(ContainerBuilder $container)
{'fraction_non_alphanumeric': 0.0937350549976088, 'fraction_numerical': 0.011477761836441894, 'mean_word_length': 3.776255707762557, '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': '677775', 'n_tokens_mistral': 547, 'n_tokens_neox': 529, 'n_words': 72}