HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //usr/local/lib/php/tests/Translation2/tests/admin_gettext_mo_test.php
<?php
// $Id: admin_gettext_mo_test.php 245971 2007-11-10 00:02:50Z quipo $

require_once 'admin_gettext_test_base.php';

class TestOfAdminContainerGettextMO extends TestOfAdminContainerGettextPO {
    function TestOfAdminContainerGettextMO($name='Test of Admin Container Gettext MO') {
        $this->UnitTestCase($name);
    }
    function setUp() {
        $this->init();
        $driver = 'gettext';
        $options = array(
            'prefetch'          => false,
            'langs_avail_file'  => 'gettext_langs.ini',
            'domains_path_file' => 'gettext_domains.ini',
            'default_domain'    => 'messages',
            'file_type'         => 'mo',
        );
        $this->tr = Translation2_Admin::factory($driver, $options);
    }
}

if (!defined('TEST_RUNNING')) {
    define('TEST_RUNNING', true);
    $test = &new TestOfAdminContainerGettextMO();
    $test->run(new HtmlReporter());
}
?>