<commit_before><?php

class CommandsTest extends PHPUnit_Framework_TestCase
{
    function test()
    {
        $app = new LazyRecord\Console;
        ok($app);
        ok( $app->createCommand('LazyRecord\Command\BuildConfCommand') );
        ok( $app->createCommand('LazyRecord\Command\BuildSchemaCommand') );
        ok( $app->createCommand('LazyRecord\Command\BuildBaseDataCommand') );
        ok( $app->createCommand('LazyRecord\Command\PrepareCommand') );
        ok( $app->createCommand('LazyRecord\Command\InitCommand') );
        ok( $app->createCommand('LazyRecord\Command\CreateDBCommand') );
        ok( $app->createCommand('LazyRecord\Command\MigrateCommand') );
        ok( $app->createCommand('LazyRecord\Command\SchemaCommand') );
        ok( $app->createCommand('LazyRecord\Command\DiffCommand') );
    }

    function testconf()
    {
        $this->expectOutputRegex('/Making link/');
        $app = new LazyRecord\Console;
        $app->run(array('lazy','build-conf'));
    }
}
<commit_msg>More command tests<commit_after><?php

class CommandsTest extends PHPUnit_Framework_TestCase
{
    function test()
    {
        $app = new LazyRecord\Console;
        ok($app);
        ok( $app->createCommand('LazyRecord\Command\BuildConfCommand') );
        ok( $app->createCommand('LazyRecord\Command\BuildSchemaCommand') );
        ok( $app->createCommand('LazyRecord\Command\BuildBaseDataCommand') );
        ok( $app->createCommand('LazyRecord\Command\PrepareCommand') );
        ok( $app->createCommand('LazyRecord\Command\InitCommand') );
        ok( $app->createCommand('LazyRecord\Command\CreateDBCommand') );
        ok( $app->createCommand('LazyRecord\Command\MigrateCommand') );
        ok( $app->createCommand('LazyRecord\Command\SchemaCommand') );
        ok( $app->createCommand('LazyRecord\Command\DiffCommand') );
    }

    function testConfCommand()
    {
        $this->expectOutputRegex('/Making link/');
        $app = new LazyRecord\Console;
        $app->run(array('lazy','build-conf'));
    }


    /**
     * @depends testConfCommand
     */
    function testSchemaCommand()
    {
        $this->expectOutputRegex('/Done/');
        $app = new LazyRecord\Console;
        $app->run(array('lazy','build-schema'));
    }


    /**
     * @depends testSchemaCommand
     */
    function testSqlCommand()
    {
        $this->expectOutputRegex('/Done/');
        $app = new LazyRecord\Console;
        $app->run(array('lazy','build-sql','--rebuild'));
    }


}

{'fraction_non_alphanumeric': 0.16078588612670408, 'fraction_numerical': 0.0, 'mean_word_length': 3.09688013136289, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '4103070', 'n_tokens_mistral': 748, 'n_tokens_neox': 740, 'n_words': 94}