<commit_before><?php
/*
 * This file is part of the BusinessCarouselBundle and it is distributed
 * under the GPL LICENSE Version 2.0. To use this application you must leave
 * intact this copyright notice.
 *
 * Copyright (c) AlphaLemon <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * For extra documentation and help please visit http://www.alphalemon.com
 *
 * @license    GPL LICENSE Version 2.0
 *
 */

namespace AlphaLemon\Block\BusinessCarouselBundle\Tests\Unit\Core\Block;

use AlphaLemon\Block\BusinessCarouselBundle\Tests\TestCase;
use AlphaLemon\Block\BusinessCarouselBundle\Core\Block\AlBlockManagerBusinessCarousel;

/**
 * AlBlockManagerBusinessCarouselTest
 *
 * @author alphalemon <<EMAIL>>
 */
class AlBlockManagerBusinessCarouselTest extends TestCase
{
    protected function setUp()
    {
        parent::setUp();

        $factoryRepository = $this->getMock('AlphaLemon\AlphaLemonCmsBundle\Core\Repository\Factory\AlFactoryRepositoryInterface');
        $dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
        $this->blockManager = new AlBlockManagerBusinessCarousel($dispatcher, $factoryRepository);
    }

    public function testDefaultValue()
    {
        $value =
        '{
            "0" : {
                "name" : "John",
                "surname" : "Doe",
                "role" : "Ceo",<commit_msg>fixed due to changes on AlphaLemon CMS<commit_after><?php
/*
 * This file is part of the BusinessCarouselBundle and it is distributed
 * under the GPL LICENSE Version 2.0. To use this application you must leave
 * intact this copyright notice.
 *
 * Copyright (c) AlphaLemon <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * For extra documentation and help please visit http://www.alphalemon.com
 *
 * @license    GPL LICENSE Version 2.0
 *
 */

namespace AlphaLemon\Block\BusinessCarouselBundle\Tests\Unit\Core\Block;

use AlphaLemon\Block\BusinessCarouselBundle\Tests\TestCase;
use AlphaLemon\Block\BusinessCarouselBundle\Core\Block\AlBlockManagerBusinessCarousel;

/**
 * AlBlockManagerBusinessCarouselTest
 *
 * @author alphalemon <<EMAIL>>
 */
class AlBlockManagerBusinessCarouselTest extends TestCase
{
    protected function setUp()
    {
        parent::setUp();

        $factoryRepository = $this->getMock('AlphaLemon\AlphaLemonCmsBundle\Core\Repository\Factory\AlFactoryRepositoryInterface');
        $eventsHandler = $this->getMock('AlphaLemon\AlphaLemonCmsBundle\Core\EventsHandler\AlEventsHandlerInterface');
        $this->blockManager = new AlBlockManagerBusinessCarousel($eventsHandler, $factoryRepository);
    }

    public function testDefaultValue()
    {
        $value =
        '{
            "0" : {
                "name" : "John",
                "surname" : "Doe",
                "role" : "Ceo",
{'fraction_non_alphanumeric': 0.09916527545909849, 'fraction_numerical': 0.00333889816360601, 'mean_word_length': 3.5120481927710845, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2766885', 'n_tokens_mistral': 845, 'n_tokens_neox': 807, 'n_words': 209}