public function testReadPoPlural() {
$file = "{$this->_path}/de/LC_MESSAGES/default.po";
$data = <<<EOD
msgid "singular 1"
msgid_plural "plural 1"
msgstr[0] "translated 1-0"
msgstr[1] "translated 1-1"
EOD;
file_put_contents($file, $data);
$expected = array(
'singular 1' => array(
'id' => 'singular 1',
'ids' => array('singular' => 'singular 1', 'plural' => 'plural 1'),
'flags' => array(),
'translated' => array('translated 1-0', 'translated 1-1'),
'occurrences' => array(),
'comments' => array()
)
);
$result = $this->adapter->read('message', 'de', null);
$this->assertEqual($expected, $result);
}