Changeset 52010 for trunk/tests/phpunit/tests/pomo/po.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pomo/po.php
r51628 r52010 49 49 } 50 50 51 function test_prepend_each_line() {51 public function test_prepend_each_line() { 52 52 $po = new PO(); 53 53 $this->assertSame( 'baba_', $po->prepend_each_line( '', 'baba_' ) ); … … 56 56 } 57 57 58 function test_poify() {58 public function test_poify() { 59 59 $po = new PO(); 60 60 // Simple. … … 75 75 } 76 76 77 function test_unpoify() {77 public function test_unpoify() { 78 78 $po = new PO(); 79 79 $this->assertSame( 'baba', $po->unpoify( '"baba"' ) ); … … 86 86 } 87 87 88 function test_export_entry() {88 public function test_export_entry() { 89 89 $po = new PO(); 90 90 $entry = new Translation_Entry( array( 'singular' => 'baba' ) ); … … 211 211 } 212 212 213 function test_export_entries() {213 public function test_export_entries() { 214 214 $entry = new Translation_Entry( array( 'singular' => 'baba' ) ); 215 215 $entry2 = new Translation_Entry( array( 'singular' => 'dyado' ) ); … … 220 220 } 221 221 222 function test_export_headers() {222 public function test_export_headers() { 223 223 $po = new PO(); 224 224 $po->set_header( 'Project-Id-Version', 'WordPress 2.6-bleeding' ); … … 227 227 } 228 228 229 function test_export() {229 public function test_export() { 230 230 $po = new PO(); 231 231 $entry = new Translation_Entry( array( 'singular' => 'baba' ) ); … … 240 240 241 241 242 function test_export_to_file() {242 public function test_export_to_file() { 243 243 $po = new PO(); 244 244 $entry = new Translation_Entry( array( 'singular' => 'baba' ) ); … … 258 258 } 259 259 260 function test_import_from_file() {260 public function test_import_from_file() { 261 261 $po = new PO(); 262 262 $res = $po->import_from_file( DIR_TESTDATA . '/pomo/simple.po' ); … … 317 317 } 318 318 319 function test_import_from_entry_file_should_give_false() {319 public function test_import_from_entry_file_should_give_false() { 320 320 $po = new PO(); 321 321 $this->assertFalse( $po->import_from_file( DIR_TESTDATA . '/pomo/empty.po' ) ); 322 322 } 323 323 324 function test_import_from_file_with_windows_line_endings_should_work_as_with_unix_line_endings() {324 public function test_import_from_file_with_windows_line_endings_should_work_as_with_unix_line_endings() { 325 325 $po = new PO(); 326 326 $this->assertTrue( $po->import_from_file( DIR_TESTDATA . '/pomo/windows-line-endings.po' ) );
Note: See TracChangeset
for help on using the changeset viewer.