<commit_before><?php

namespace Flint\Tests;

use Flint\Application;

class ApplicationTest extends \PHPUnit_Framework_TestCase
{
    public function setUp()
    {
        $this->app = new Application(__DIR__, true);
    }

    public function testInjectSetParameters()
    {
        $this->app->inject(array(
            'key.param' => 'key.value',
        ));

        $this->assertEquals($this->app['key.param'], 'key.value');
    }

    public function testParametersCanBeSetFromConstructor()
    {
        $app = new Application(__DIR__, true, array(
            'my_parameter' => 'my_parameter_value',
        ));

        $this->assertEquals('my_parameter_value', $app['my_parameter']);
    }

    public function testRootDirAndDebugIsSet()
    {
        $app = new Application('/my/root_dir', true);

        $this->assertTrue($app['debug']);
        $this->assertEquals('/my/root_dir', $app['root_dir']);
    }

    public function testConfigureWillLoadConfigFile()
    {
        $app = new Application('/my/root_dir', true);
        $app['configurator'] = $this->getMockBuilder('Flint\Config\Configurator')
            ->disableOriginalConstructor()->getMock();

        $app['configurator']->expects($this->once())->method('configure')
            ->with($this->equalTo($app), $this->equalTo('config.json'));

        $app->configure('config.json');
    }<commit_msg>remove test for removed feature;<commit_after><?php

namespace Flint\Tests;

use Flint\Application;

class ApplicationTest extends \PHPUnit_Framework_TestCase
{
    public function setUp()
    {
        $this->app = new Application(__DIR__, true);
    }

    public function testParametersCanBeSetFromConstructor()
    {
        $app = new Application(__DIR__, true, array(
            'my_parameter' => 'my_parameter_value',
        ));

        $this->assertEquals('my_parameter_value', $app['my_parameter']);
    }

    public function testRootDirAndDebugIsSet()
    {
        $app = new Application('/my/root_dir', true);

        $this->assertTrue($app['debug']);
        $this->assertEquals('/my/root_dir', $app['root_dir']);
    }

    public function testConfigureWillLoadConfigFile()
    {
        $app = new Application('/my/root_dir', true);
        $app['configurator'] = $this->getMockBuilder('Flint\Config\Configurator')
            ->disableOriginalConstructor()->getMock();

        $app['configurator']->expects($this->once())->method('configure')
            ->with($this->equalTo($app), $this->equalTo('config.json'));

        $app->configure('config.json');
    }
{'fraction_non_alphanumeric': 0.16081186572989853, 'fraction_numerical': 0.0, 'mean_word_length': 3.087719298245614, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 38, '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': '5613379', 'n_tokens_mistral': 738, 'n_tokens_neox': 720, 'n_words': 116}