Changeset 51367 for trunk/tests/phpunit/tests/pomo/mo.php
- Timestamp:
- 07/07/2021 10:32:56 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pomo/mo.php
r48937 r51367 16 16 $mo->headers 17 17 ); 18 $this->assert Same( 2, count( $mo->entries ));18 $this->assertCount( 2, $mo->entries ); 19 19 $this->assertSame( array( 'dyado' ), $mo->entries['baba']->translations ); 20 20 $this->assertSame( array( 'yes' ), $mo->entries["kuku\nruku"]->translations ); … … 24 24 $mo = new MO(); 25 25 $mo->import_from_file( DIR_TESTDATA . '/pomo/plural.mo' ); 26 $this->assert Same( 1, count( $mo->entries ));26 $this->assertCount( 1, $mo->entries ); 27 27 $this->assertSame( array( 'oney dragoney', 'twoey dragoney', 'manyey dragoney', 'manyeyey dragoney', 'manyeyeyey dragoney' ), $mo->entries['one dragon']->translations ); 28 28 … … 50 50 $mo = new MO(); 51 51 $mo->import_from_file( DIR_TESTDATA . '/pomo/context.mo' ); 52 $this->assert Same( 2, count( $mo->entries ));52 $this->assertCount( 2, $mo->entries ); 53 53 $plural_entry = new Translation_Entry( 54 54 array( … … 82 82 $guest->add_entry( new Translation_Entry( array( 'singular' => 'red' ) ) ); 83 83 $host->merge_with( $guest ); 84 $this->assert Same( 3, count( $host->entries ));84 $this->assertCount( 3, $host->entries ); 85 85 $this->assertSame( array(), array_diff( array( 'pink', 'green', 'red' ), array_keys( $host->entries ) ) ); 86 86 } … … 160 160 $again->import_from_file( $temp_fn ); 161 161 162 $this->assert Same( 0, count( $again->entries ));162 $this->assertCount( 0, $again->entries ); 163 163 } 164 164
Note: See TracChangeset
for help on using the changeset viewer.