Changeset 52010 for trunk/tests/phpunit/tests/pomo/mo.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pomo/mo.php
r51415 r52010 6 6 class Tests_POMO_MO extends WP_UnitTestCase { 7 7 8 function test_mo_simple() {8 public function test_mo_simple() { 9 9 $mo = new MO(); 10 10 $mo->import_from_file( DIR_TESTDATA . '/pomo/simple.mo' ); … … 21 21 } 22 22 23 function test_mo_plural() {23 public function test_mo_plural() { 24 24 $mo = new MO(); 25 25 $mo->import_from_file( DIR_TESTDATA . '/pomo/plural.mo' ); … … 47 47 } 48 48 49 function test_mo_context() {49 public function test_mo_context() { 50 50 $mo = new MO(); 51 51 $mo->import_from_file( DIR_TESTDATA . '/pomo/context.mo' ); … … 74 74 } 75 75 76 function test_translations_merge() {76 public function test_translations_merge() { 77 77 $host = new Translations(); 78 78 $host->add_entry( new Translation_Entry( array( 'singular' => 'pink' ) ) ); … … 86 86 } 87 87 88 function test_export_mo_file() {88 public function test_export_mo_file() { 89 89 $entries = array(); 90 90 $entries[] = new Translation_Entry( … … 144 144 } 145 145 146 function test_export_should_not_include_empty_translations() {146 public function test_export_should_not_include_empty_translations() { 147 147 $entries = array(); 148 148 $mo = new MO; … … 163 163 } 164 164 165 function test_nplurals_with_backslashn() {165 public function test_nplurals_with_backslashn() { 166 166 $mo = new MO(); 167 167 $mo->import_from_file( DIR_TESTDATA . '/pomo/bad_nplurals.mo' ); … … 171 171 } 172 172 173 function disabled_test_performance() {173 public function disabled_test_performance() { 174 174 $start = microtime( true ); 175 175 $mo = new MO(); … … 178 178 } 179 179 180 function test_overloaded_mb_functions() {180 public function test_overloaded_mb_functions() { 181 181 if ( ( ini_get( 'mbstring.func_overload' ) & 2 ) === 0 ) { 182 182 $this->markTestSkipped( 'This test requires mbstring.func_overload to be enabled.' ); … … 188 188 } 189 189 190 function test_load_pot_file() {190 public function test_load_pot_file() { 191 191 $mo = new MO(); 192 192 $this->assertFalse( $mo->import_from_file( DIR_TESTDATA . '/pomo/mo.pot' ) );
Note: See TracChangeset
for help on using the changeset viewer.