@@ -23,7 +23,7 @@ public function testMoGenerator()
2323 ->set ('X-Generator ' , 'PHP-Gettext ' );
2424
2525 $ translation = Translation::create ('context-1 ' , 'Original ' );
26- $ translation ->translate ('Orixintal ' );
26+ $ translation ->translate ('Orixinal ' );
2727 $ translations ->add ($ translation );
2828
2929 $ translation = Translation::create ('context-1 ' , 'Other comment ' , 'Other comments ' );
@@ -36,14 +36,18 @@ public function testMoGenerator()
3636 $ translation ->translate ('Comentario deshabilitado ' );
3737 $ translations ->add ($ translation );
3838
39+ $ translation = Translation::create (null , '123456 ' );
40+ $ translation ->translate ('12345 ' );
41+ $ translations ->add ($ translation );
42+
3943 $ mo = $ generator ->generateString ($ translations );
4044 $ expected = file_get_contents (__DIR__ .'/assets/mo-generator-result.mo ' );
4145
4246 $ this ->assertSame ($ expected , $ mo );
4347
4448 $ result = $ loader ->loadString ($ mo );
4549
46- $ this ->assertCount (2 , $ result );
50+ $ this ->assertCount (3 , $ result );
4751 $ this ->assertCount (5 , $ result ->getHeaders ());
4852 }
4953}
0 commit comments