public function testBuildLangFile() { require_once TEST_FILES . 'config/sources.php'; $obj = new _LangManager(); $reference_data = $obj->loadSource($sites[2], 'en-US', 'page.lang'); $locale_data = $obj->loadSource($sites[2], 'it', 'page.lang'); $updated_content = $obj->buildLangFile($reference_data, $locale_data, 'it', "\n"); $comparison_content = file_get_contents(TEST_FILES . 'dotlang/it/updated_page.lang'); $this->boolean($updated_content == $comparison_content)->isTrue(); }