<commit_before><?php

require_once('tests/lib/simpletest/autorun.php');

class SyntaxTests extends UnitTestCase {
    public function testFrameworkSyntax() {
        $test_files = glob("{framework/php/cashmusic.php,framework/php/*/*.php,framework/php/classes/*/*.php}", GLOB_BRACE);
        foreach ($test_files as $file){
            system("php -l $file", $code);
            $this->assertTrue($code == 0);
        }
    }
    public function testInstallerSyntax() {
        $test_files = glob("installers/php/*.php");
        foreach ($test_files as $file){
            system("php -l $file", $code);
            $this->assertTrue($code == 0);
        }
    }
    public function testInterfaceSyntax() {
        $test_files = glob("{interfaces/php/*/*.php,interfaces/php/*/*/*.php,interfaces/php/*/*/*/*.php}", GLOB_BRACE);
        foreach ($test_files as $file){
            system("php -l $file", $code);
            $this->assertTrue($code == 0);
        }
    }
}
?><commit_msg>Syntax check even more admin components<commit_after><?php

require_once('tests/lib/simpletest/autorun.php');

class SyntaxTests extends UnitTestCase {
    public function testFrameworkSyntax() {
        $test_files = glob("{framework/php/cashmusic.php,framework/php/*/*.php,framework/php/classes/*/*.php}", GLOB_BRACE);
        foreach ($test_files as $file){
            system("php -l $file", $code);
            $this->assertTrue($code == 0);
        }
    }
    public function testInstallerSyntax() {
        $test_files = glob("installers/php/*.php");
        foreach ($test_files as $file){
            system("php -l $file", $code);
            $this->assertTrue($code == 0);
        }
    }
    public function testInterfaceSyntax() {
        $test_files = glob("{interfaces/php/*/*.php,interfaces/php/*/*/*.php,interfaces/php/*/*/*/*.php,interfaces/php/*/*/*/*/*.php}", GLOB_BRACE);
        foreach ($test_files as $file){
            system("php -l $file", $code);
            $this->assertTrue($code == 0);
        }
    }
}
?>
{'fraction_non_alphanumeric': 0.18123456790123457, 'fraction_numerical': 0.002962962962962963, 'mean_word_length': 2.5357766143106457, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7025173', 'n_tokens_mistral': 624, 'n_tokens_neox': 627, 'n_words': 111}