<commit_before><?php

namespace FOM\UserBundle\Controller;

use FOM\Component\Test\SharedApplicationWebTestCase;

class RegistrationControllerTest extends SharedApplicationWebTestCase
{
    public function testIndex() {
        $crawler = self::$client->request('GET', '/user/registration');
        $this->assertEquals(403, self::$client->getResponse()->getStatusCode());
    }

    public function testSelfRegistration() {
        $client = static::createClient(array(
            'environment' => 'test_selfregister'<commit_msg>Added comments to self registration tests<commit_after><?php

namespace FOM\UserBundle\Controller;

use FOM\Component\Test\SharedApplicationWebTestCase;

class RegistrationControllerTest extends SharedApplicationWebTestCase
{
    /**
     * Test that self registration is disabled with the default configuration.
     */
    public function testIndex() {
        $crawler = self::$client->request('GET', '/user/registration');
        $this->assertEquals(403, self::$client->getResponse()->getStatusCode());
    }

    /**
     * Test a full self registration workflow
     */
    public function testSelfRegistration() {
        $client = static::createClient(array(
            'environment' => 'test_selfregister'
{'fraction_non_alphanumeric': 0.11788291900561347, 'fraction_numerical': 0.0048115477145148355, 'mean_word_length': 4.052631578947368, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '138756', 'n_tokens_mistral': 316, 'n_tokens_neox': 310, 'n_words': 68}