<commit_before><?php

class SchemaGeneratorTest extends PHPUnit_Framework_TestCase
{
    function test()
    {
        $schema = new tests\UserSchema;
        ok($schema);

        $g = new LazyRecord\Schema\SchemaGenerator;
        $g->setLogger( new TestLogger );
        ok($g);

        $classMap = $g->generateCollectionClass($schema);
        foreach( $classMap as $class => $file ) {
            ok($class);
            ok($file);
            path_ok($file);
        }

        $classMap = $g->generateBaseCollectionClass($schema);
        foreach( $classMap as $class => $file ) {
            ok($class);
            ok($file);
            path_ok($file);
        }

        $classMap = $g->generateSchemaProxyClass($schema);
        foreach( $classMap as $class => $file ) {
            ok($class);
            ok($file);
            path_ok($file);
        }

        $classMap = $g->generate(array($schema));
        ok($classMap);

        foreach( $classMap as $class => $file ) {
            ok($class);
            ok($file);
            path_ok($file);
            require $file;
        }

        ok( isset($classMap['\tests\UserSchemaProxy']) );
        ok( isset($classMap['\tests\User']) );
        ok( isset($classMap['\tests\UserBase']) );
        ok( isset($classMap['\tests\UserCollection']) );
        ok( isset($classMap['\tests\UserCollectionBase']) );

        $schemaProxy = new \tests\UserSchemaProxy;
        ok($schemaProxy);
    }
}
<commit_msg>Test baseClass<commit_after><?php

class SchemaGeneratorTest extends PHPUnit_Framework_TestCase
{
    function test()
    {
        $schema = new tests\UserSchema;
        ok($schema);

        $g = new LazyRecord\Schema\SchemaGenerator;
        $g->setLogger( new TestLogger );
        ok($g);

        $classMap = $g->generateCollectionClass($schema);
        foreach( $classMap as $class => $file ) {
            ok($class);
            ok($file);
            path_ok($file);
        }

        $classMap = $g->generateBaseCollectionClass($schema);
        foreach( $classMap as $class => $file ) {
            ok($class);
            ok($file);
            path_ok($file);
        }

        $classMap = $g->generateSchemaProxyClass($schema);
        foreach( $classMap as $class => $file ) {
            ok($class);
            ok($file);
            path_ok($file);
        }

        $classMap = $g->generate(array($schema));
        ok($classMap);

        foreach( $classMap as $class => $file ) {
            ok($class);
            ok($file);
            path_ok($file);
            require $file;
        }

        ok( isset($classMap['\tests\UserSchemaProxy']) );
        ok( isset($classMap['\tests\User']) );
        ok( isset($classMap['\tests\UserBase']) );
        ok( isset($classMap['\tests\UserCollection']) );
        ok( isset($classMap['\tests\UserCollectionBase']) );

        $schemaProxy = new \tests\UserSchemaProxy;
        ok($schemaProxy);

        $baseClass = new \tests\UserBase;
        ok($baseClass);
    }
}

{'fraction_non_alphanumeric': 0.1556510244547257, 'fraction_numerical': 0.0, 'mean_word_length': 1.9218146718146718, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '927189', 'n_tokens_mistral': 874, 'n_tokens_neox': 868, 'n_words': 155}