| 75 | function test_41257_translate_null_returns_translation_of_0() { |
| 76 | $entry_digit_0 = new Translation_Entry( array('singular' => '0', 'translations' => array('0=zero') ) ); |
| 77 | $domain = new Translations(); |
| 78 | $domain->add_entry( $entry_digit_0 ); |
| 79 | $this->assertEquals( '0=zero', $domain->translate( "0" ) ); |
| 80 | $this->assertEquals( '0=zero', $domain->translate( null ) ); |
| 81 | $this->assertEquals( '0=zero', $domain->translate( "" ) ); |
| 82 | $this->assertEquals( '0=zero', $domain->translate( 0 ) ); |
| 83 | } |
| 84 | |