<commit_before><?php

namespace Tests\Form;

use Symfony\Bridge\RulerZ\Form\SpecificationToBooleanTransformer;
use Symfony\Bridge\RulerZ\Form\SpecificationToStringTransformer;
use Symfony\Bridge\RulerZ\Form\SpecTypeExtension;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Forms;
use Symfony\Component\Form\Test\FormIntegrationTestCase;

class SpecTypeExtensionTest extends FormIntegrationTestCase
{
    protected function getTypeExtensions()
    {
        return [
            new SpecTypeExtension(),
        ];
    }

    protected function setUp()<commit_msg>Fix the tests for Symfony 3.x<commit_after><?php

namespace Tests\Form;

use Symfony\Bridge\RulerZ\Form\SpecificationToBooleanTransformer;
use Symfony\Bridge\RulerZ\Form\SpecificationToStringTransformer;
use Symfony\Bridge\RulerZ\Form\SpecTypeExtension;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Forms;
use Symfony\Component\Form\Test\FormIntegrationTestCase;

// BC layer for SF 3.*
if (!class_exists(\PHPUnit_Framework_TestCase::class)) {
    class_alias(\PHPUnit\Framework\TestCase::class, \PHPUnit_Framework_TestCase::class);
}

class SpecTypeExtensionTest extends FormIntegrationTestCase
{
    protected function getTypeExtensions()
    {
        return [
            new SpecTypeExtension(),
        ];
    }

    protected function setUp()
{'fraction_non_alphanumeric': 0.09293948126801153, 'fraction_numerical': 0.001440922190201729, 'mean_word_length': 4.692622950819672, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1540770', 'n_tokens_mistral': 406, 'n_tokens_neox': 397, 'n_words': 69}