<commit_before><?php

namespace demo;

use AspectMock\Test as test;
use InvalidArgumentException;
use Xtreamwayz\HTMLFormValidator\Validator;

class RecaptchaValidatorTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var Validator\RecaptchaValidator
     */
    protected $validator;

    protected $privKey = 'secret_private_key';

    protected $pubKey = 'public_key';

    /**
     * Creates a new RecaptchaValidator object for each test method
     *
     * @return void
     */
    public function setUp()
    {
        $this->validator = new Validator\RecaptchaValidator(['key' => $this->privKey]);
    }

    protected function tearDown() {
        test::clean();
    }

    public function testMissingKeyOptionThrowsInvalidArgumentException()
    {
        $this->expectException(InvalidArgumentException::class);
<commit_msg>Fix PSR2 validation<commit_after><?php

namespace demo;

use AspectMock\Test as test;
use InvalidArgumentException;
use Xtreamwayz\HTMLFormValidator\Validator;

class RecaptchaValidatorTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var Validator\RecaptchaValidator
     */
    protected $validator;

    protected $privKey = 'secret_private_key';

    protected $pubKey = 'public_key';

    /**
     * Creates a new RecaptchaValidator object for each test method
     *
     * @return void
     */
    public function setUp()
    {
        $this->validator = new Validator\RecaptchaValidator(['key' => $this->privKey]);
    }

    protected function tearDown()
    {
        test::clean();
    }

    public function testMissingKeyOptionThrowsInvalidArgumentException()
    {
        $this->expectException(InvalidArgumentException::class);

{'fraction_non_alphanumeric': 0.09905660377358491, 'fraction_numerical': 0.0005896226415094339, 'mean_word_length': 3.340153452685422, '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': '2354699', 'n_tokens_mistral': 477, 'n_tokens_neox': 466, 'n_words': 104}