Changeset 64064
- Timestamp:
- 10/02/2026 06:26:28 PM (8 weeks ago)
- Location:
- trunk/tests/phpunit/tests/pomo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pomo/mo.php
r56548 r64064 59 59 ) 60 60 ); 61 // Keep assertEquals() because the objects are intentionally compared by value. 61 62 $this->assertEquals( $plural_entry, $mo->entries[ $plural_entry->key() ] ); 62 63 $this->assertSame( 'dragonland', $mo->entries[ $plural_entry->key() ]->context ); … … 69 70 ) 70 71 ); 72 73 // Keep assertEquals() because the objects are intentionally compared by value. 71 74 $this->assertEquals( $single_entry, $mo->entries[ $single_entry->key() ] ); 72 75 $this->assertSame( 'not so dragon', $mo->entries[ $single_entry->key() ]->context ); … … 139 142 $this->assertSame( count( $entries ), count( $again->entries ) ); 140 143 foreach ( $entries as $entry ) { 144 // Keep assertEquals() because the objects are intentionally compared by value. 141 145 $this->assertEquals( $entry, $again->entries[ $entry->key() ] ); 142 146 } -
trunk/tests/phpunit/tests/pomo/po.php
r62093 r64064 283 283 284 284 $simple_entry = new Translation_Entry( array( 'singular' => 'moon' ) ); 285 // Keep assertEquals() because the objects are intentionally compared by value. 285 286 $this->assertEquals( $simple_entry, $po->entries[ $simple_entry->key() ] ); 286 287 … … 293 294 ) 294 295 ); 296 // Keep assertEquals() because the objects are intentionally compared by value. 295 297 $this->assertEquals( $all_types_entry, $po->entries[ $all_types_entry->key() ] ); 296 298 … … 301 303 ) 302 304 ); 305 // Keep assertEquals() because the objects are intentionally compared by value. 303 306 $this->assertEquals( $multiple_line_entry, $po->entries[ $multiple_line_entry->key() ] ); 304 307 … … 311 314 ) 312 315 ); 316 // Keep assertEquals() because the objects are intentionally compared by value. 313 317 $this->assertEquals( $multiple_line_all_types_entry, $po->entries[ $multiple_line_all_types_entry->key() ] ); 314 318 … … 322 326 ) 323 327 ); 328 // Keep assertEquals() because the objects are intentionally compared by value. 324 329 $this->assertEquals( $comments_entry, $po->entries[ $comments_entry->key() ] ); 325 330 326 331 $end_quote_entry = new Translation_Entry( array( 'singular' => 'a"' ) ); 332 // Keep assertEquals() because the objects are intentionally compared by value. 327 333 $this->assertEquals( $end_quote_entry, $po->entries[ $end_quote_entry->key() ] ); 328 334 } … … 380 386 ); 381 387 388 // Keep assertEquals() because the objects are intentionally compared by value. 382 389 $this->assertEquals( $po->entries, $entries, 'Failed for ' . $printable_newline ); 383 390
Note:
See TracChangeset
for help on using the changeset viewer.