<commit_before><?php

use Expressly\Presenter\RegisteredPresenter;

class RegisteredPresenterTest extends \PHPUnit_Framework_TestCase
{
    public function testToArray()
    {
        $presenter = new RegisteredPresenter();

        $this->assertEquals(
            array('registered' => true),
            $presenter->toArray()
        );

        $this->assertJson(json_encode($presenter->toArray()));
    }
}<commit_msg>v2.7.0 - fix unit test<commit_after><?php

use Expressly\Presenter\RegisteredPresenter;

class RegisteredPresenterTest extends \PHPUnit_Framework_TestCase
{
    public function testToArray()
    {
        $presenter = new RegisteredPresenter();

        $this->assertEquals(
            array(
                'registered' => true,
                'lightbox' => 'javascript',
                'version' => 'V2'
            ),
            $presenter->toArray()
        );

        $this->assertJson(json_encode($presenter->toArray()));
    }
}
{'fraction_non_alphanumeric': 0.12344398340248963, 'fraction_numerical': 0.004149377593360996, 'mean_word_length': 2.421985815602837, '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': '359758', 'n_tokens_mistral': 275, 'n_tokens_neox': 268, 'n_words': 44}