8000 Merge pull request #4 from stealth35/test_mo_loader · symfony/symfony@d974a4a · GitHub
[go: up one dir, main page]

Skip to content

Commit d974a4a

Browse files
committed
Merge pull request #4 from stealth35/test_mo_loader
[Translation] fix gettext tests
2 parents 965f2bf + cf05646 commit d974a4a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ 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';
3437
$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());
3938
}
4039
}
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)
0