Skip to content

Commit

Permalink
[Translation] fixed the error in the dumper test as described in #9475
Browse files Browse the repository at this point in the history
  • Loading branch information
andremaha committed Nov 9, 2013
1 parent 527269a commit 853404a
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -25,13 +25,15 @@ public function testDump()
$catalogue = new MessageCatalogue('en');
$catalogue->add(array('foo' => 'bar'));

$tempDir = sys_get_temp_dir();
$tempDir = sys_get_temp_dir() . '/IcuResFileDumperTest';
mkdir($tempDir);
$dumper = new IcuResFileDumper();
$dumper->dump($catalogue, array('path' => $tempDir));

$this->assertEquals(file_get_contents(__DIR__.'/../fixtures/resourcebundle/res/en.res'), file_get_contents($tempDir.'/messages/en.res'));

unlink($tempDir.'/messages/en.res');
rmdir($tempDir.'/messages');
rmdir($tempDir);
}
}

0 comments on commit 853404a

Please sign in to comment.