| 1 |
lars |
1 |
<?php
|
|
|
2 |
// $Id: admin_gettext_mo_test.php 245971 2007-11-10 00:02:50Z quipo $
|
|
|
3 |
|
|
|
4 |
require_once 'admin_gettext_test_base.php';
|
|
|
5 |
|
|
|
6 |
class TestOfAdminContainerGettextMO extends TestOfAdminContainerGettextPO {
|
|
|
7 |
function TestOfAdminContainerGettextMO($name='Test of Admin Container Gettext MO') {
|
|
|
8 |
$this->UnitTestCase($name);
|
|
|
9 |
}
|
|
|
10 |
function setUp() {
|
|
|
11 |
$this->init();
|
|
|
12 |
$driver = 'gettext';
|
|
|
13 |
$options = array(
|
|
|
14 |
'prefetch' => false,
|
|
|
15 |
'langs_avail_file' => 'gettext_langs.ini',
|
|
|
16 |
'domains_path_file' => 'gettext_domains.ini',
|
|
|
17 |
'default_domain' => 'messages',
|
|
|
18 |
'file_type' => 'mo',
|
|
|
19 |
);
|
|
|
20 |
$this->tr = Translation2_Admin::factory($driver, $options);
|
|
|
21 |
}
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
if (!defined('TEST_RUNNING')) {
|
|
|
25 |
define('TEST_RUNNING', true);
|
|
|
26 |
$test = &new TestOfAdminContainerGettextMO();
|
|
|
27 |
$test->run(new HtmlReporter());
|
|
|
28 |
}
|
|
|
29 |
?>
|