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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy