Skip to content

Commit 19f9de9

Browse files
committed
[Translation] fix gettext tests
1 parent 9c2a26d commit 19f9de9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/Symfony/Tests/Component/Translation/Loader/MoFileLoaderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ public function testLoad()
2727
$this->assertEquals(array(new FileResource($resource)), $catalogue->getResources());
2828
}
2929

30-
public function testLoadDoesNothingIfEmpty()
30+
/**
31+
* @expectedException \InvalidArgumentException
32+
*/
33+
public function testLoadInvalidResource()
3134
{
3235
$loader = new MoFileLoader();
3336
$resource = __DIR__.'/../fixtures/empty.mo';
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
msgid "foo"
2-
msgstr "bar"
2+
msgstr "bar"
3+

0 commit comments

Comments
 (0)