File tree 2 files changed +6
-6
lines changed
tests/Symfony/Tests/Component/Translation 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,13 @@ public function testLoad()
27
27
$ this ->assertEquals (array (new FileResource ($ resource )), $ catalogue ->getResources ());
28
28
}
29
29
30
- public function testLoadDoesNothingIfEmpty ()
30
+ /**
31
+ * @expectedException \InvalidArgumentException
32
+ */
33
+ public function testLoadInvalidResource ()
31
34
{
32
35
$ loader = new MoFileLoader ();
33
36
$ resource = __DIR__ .'/../fixtures/empty.mo ' ;
34
37
$ catalogue = $ loader ->load ($ resource , 'en ' , 'domain1 ' );
35
-
36
- $ this ->assertEquals (array (), $ catalogue ->all ('domain1 ' ));
37
- $ this ->assertEquals ('en ' , $ catalogue ->getLocale ());
38
- $ this ->assertEquals (array (new FileResource ($ resource )), $ catalogue ->getResources ());
39
38
}
40
39
}
Original file line number Diff line number Diff line change 1
1
msgid "foo"
2
- msgstr "bar"
2
+ msgstr "bar"
3
+
You can’t perform that action at this time.
0 commit comments