public function testFixDoubleEscapedOnWrite()
{
$this->adapter->mo = false;
$file = "{$this->_path}/de/LC_MESSAGES/default.po";
$catalog = array("this is the\\\\message" => array('id' => "this is the\\\\message", 'ids' => array('singular' => "this is the\\\\message"), 'flags' => array(), 'translated' => "this is the\\\\translation", 'occurrences' => array(), 'comments' => array(), 'context' => null));
$po = <<<EOD
msgid "this is the\\\\message"
msgstr "this is the\\\\translation"
EOD;
$this->adapter->write('message', 'de', null, $catalog);
$result = file_get_contents($file);
$this->assertPattern('/' . preg_quote($po, '/') . '/', $result);
}