<commit_before><?php

/*
 * This file is part of the User library.
 *
 * (c) <NAME> <<EMAIL>>
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace spec\BenGor\User\Domain\Model;

use BenGor\User\Domain\Model\UserEmail;
use BenGor\User\Domain\Model\UserId;
use BenGor\User\Domain\Model\UserPasswordEncoder;
use PhpSpec\ObjectBehavior;

/**
 * Spec file of User domain class.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */
class UserSpec extends ObjectBehavior
{
    function let(UserPasswordEncoder $encoder)
    {
        $this->beConstructedThrough('register', [
            new UserId(),
            new UserEmail('<EMAIL>'),
            'strongpassword',
            $encoder
        ]);

    }
    function it_is_initializable()<commit_msg>Changed beConstructed to new syntax<commit_after><?php

/*
 * This file is part of the User library.
 *
 * (c) <NAME> <<EMAIL>>
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace spec\BenGor\User\Domain\Model;

use BenGor\User\Domain\Model\UserEmail;
use BenGor\User\Domain\Model\UserId;
use BenGor\User\Domain\Model\UserPasswordEncoder;
use PhpSpec\ObjectBehavior;

/**
 * Spec file of User domain class.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */
class UserSpec extends ObjectBehavior
{
    function let(UserPasswordEncoder $encoder)
    {
        $this->beConstructedRegister(
            new UserId(),
            new UserEmail('<EMAIL>'),
            '<PASSWORD>',
            $encoder
        );

    }
    function it_is_initializable()
{'fraction_non_alphanumeric': 0.12805919180421171, 'fraction_numerical': 0.0, 'mean_word_length': 3.0694444444444446, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 32, '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': '496390', 'n_tokens_mistral': 535, 'n_tokens_neox': 538, 'n_words': 147}