<commit_before><?php
/**
 * @file
 */

namespace CultuurNet\UDB3\SavedSearches\Command;

use CultuurNet\Deserializer\MissingValueException;
use CultuurNet\UDB3\SavedSearches\Properties\QueryString;
use ValueObjects\String\String;

class SubscribeToSavedSearchJSONDeserializerTest extends \PHPUnit_Framework_TestCase
{

    /**
     * @var string
     */
    protected $userId;

    /**
     * @var SubscribeToSavedSearchJSONDeserializer
     */
    protected $deserializer;

    public function setUp()
    {
        $this->userId = new String('xyx');
        $this->deserializer = new SubscribeToSavedSearchJSONDeserializer($this->userId);
    }

    /**
     * @test
     */
    public function it_creates_commands_with_the_user_id_passed_in_the_constructor()
    {
        $command = $this->deserializer->deserialize(
            $this->getStringFromFile('subscribe.json')
        );
<commit_msg>III-10: Correct member variable type<commit_after><?php
/**
 * @file
 */

namespace CultuurNet\UDB3\SavedSearches\Command;

use CultuurNet\Deserializer\MissingValueException;
use CultuurNet\UDB3\SavedSearches\Properties\QueryString;
use ValueObjects\String\String;

class SubscribeToSavedSearchJSONDeserializerTest extends \PHPUnit_Framework_TestCase
{

    /**
     * @var String
     */
    protected $userId;

    /**
     * @var SubscribeToSavedSearchJSONDeserializer
     */
    protected $deserializer;

    public function setUp()
    {
        $this->userId = new String('xyx');
        $this->deserializer = new SubscribeToSavedSearchJSONDeserializer($this->userId);
    }

    /**
     * @test
     */
    public function it_creates_commands_with_the_user_id_passed_in_the_constructor()
    {
        $command = $this->deserializer->deserialize(
            $this->getStringFromFile('subscribe.json')
        );

{'fraction_non_alphanumeric': 0.10873146622734761, 'fraction_numerical': 0.0032948929159802307, 'mean_word_length': 3.3175355450236967, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '6745731', 'n_tokens_mistral': 576, 'n_tokens_neox': 573, 'n_words': 80}