[Translation] fix gettext tests

This commit is contained in:
stealth35 2011-11-09 12:08:40 +01:00
parent 9c2a26db12
commit 19f9de9e8f
2 changed files with 6 additions and 2 deletions

View File

@ -27,7 +27,10 @@ class MoFileLoaderTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(array(new FileResource($resource)), $catalogue->getResources());
}
public function testLoadDoesNothingIfEmpty()
/**
* @expectedException \InvalidArgumentException
*/
public function testLoadInvalidResource()
{
$loader = new MoFileLoader();
$resource = __DIR__.'/../fixtures/empty.mo';

View File

@ -1,2 +1,3 @@
msgid "foo"
msgstr "bar"
msgstr "bar"