<commit_before><?php

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

namespace h4cc\AliceFixturesBundle\Tests\DependencyInjection\Command;

use h4cc\AliceFixturesBundle\Command\LoadSetsCommand;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\DependencyInjection\Container;

/**
 * Class LoadSetsCommandTest
 *
 * @author <NAME> <<EMAIL>>
 */
class LoadSetsCommandTest extends \PHPUnit_Framework_TestCase
{
    private $application;

    private $command;

    /** @var  \PHPUnit_Framework_MockObject_MockObject */
    private $managerMock;

    public function setUp()
    {
        $this->managerMock = $this->getMockBuilder('\h4cc\AliceFixturesBundle\Fixtures\FixtureManagerInterface')
                             ->setMethods(array('load'))
                             ->getMockForAbstractClass();

        $this->application = new Application();
        $this->application->add(new LoadSetsCommand());

        $container = new Container();
        $container->set('h4cc_alice_fixtures.manager', $this->managerMock);<commit_msg>Sensio Insight service hook test.<commit_after><?php

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

namespace h4cc\AliceFixturesBundle\Tests\DependencyInjection\Command;

use h4cc\AliceFixturesBundle\Command\LoadSetsCommand;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\DependencyInjection\Container;

/**
 * Class LoadSetsCommandTest.
 *
 * @author <NAME> <<EMAIL>>
 */
class LoadSetsCommandTest extends \PHPUnit_Framework_TestCase
{
    private $application;

    private $command;

    /** @var  \PHPUnit_Framework_MockObject_MockObject */
    private $managerMock;

    public function setUp()
    {
        $this->managerMock = $this->getMockBuilder('\h4cc\AliceFixturesBundle\Fixtures\FixtureManagerInterface')
                             ->setMethods(array('load'))
                             ->getMockForAbstractClass();

        $this->application = new Application();
        $this->application->add(new LoadSetsCommand());

        $container = new Container();
        $container->set('h4cc_alice_fixtures.manager', $this->managerMock);
{'fraction_non_alphanumeric': 0.11295938104448743, 'fraction_numerical': 0.0038684719535783366, 'mean_word_length': 3.576991150442478, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 33, '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': '413699', 'n_tokens_mistral': 725, 'n_tokens_neox': 718, 'n_words': 153}