Changeset 1170 in tests for trunk/tests/pomo/test_po.php
- Timestamp:
- 12/19/2012 12:56:28 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/pomo/test_po.php
r1106 r1170 175 175 function test_import_from_file() { 176 176 $po = new PO(); 177 $res = $po->import_from_file( 'data/pomo/simple.po');177 $res = $po->import_from_file(DIR_TESTDATA . '/pomo/simple.po'); 178 178 $this->assertEquals(true, $res); 179 179 … … 205 205 function test_import_from_entry_file_should_give_false() { 206 206 $po = new PO(); 207 $this->assertFalse( $po->import_from_file( 'data/pomo/empty.po' ) );207 $this->assertFalse( $po->import_from_file( DIR_TESTDATA . '/pomo/empty.po' ) ); 208 208 } 209 209 210 210 function test_import_from_file_with_windows_line_endings_should_work_as_with_unix_line_endings() { 211 211 $po = new PO(); 212 $this->assertTrue( $po->import_from_file( 'data/pomo/windows-line-endings.po' ) );212 $this->assertTrue( $po->import_from_file( DIR_TESTDATA . '/pomo/windows-line-endings.po' ) ); 213 213 $this->assertEquals( 1, count( $po->entries ) ); 214 214 }
Note: See TracChangeset
for help on using the changeset viewer.