public function testReadPoMultipleItems()
{
$file = "{$this->_path}/de/LC_MESSAGES/default.po";
$data = <<<EOD
msgid "singular 1"
msgstr "translated 1"
msgid "singular 2"
msgstr "translated 2"
msgid "context"
msgstr "context (none specified)"
msgctxt "A"
msgid "context"
msgstr "context A"
msgctxt "B"
msgid "context"
msgstr "context B"
EOD;
file_put_contents($file, $data);
$expected = array('singular 1' => array('id' => 'singular 1', 'ids' => array('singular' => 'singular 1'), 'flags' => array(), 'translated' => 'translated 1', 'occurrences' => array(), 'comments' => array(), 'context' => null), 'singular 2' => array('id' => 'singular 2', 'ids' => array('singular' => 'singular 2'), 'flags' => array(), 'translated' => 'translated 2', 'occurrences' => array(), 'comments' => array(), 'context' => null), 'context' => array('id' => 'context', 'ids' => array('singular' => 'context'), 'flags' => array(), 'translated' => 'context (none specified)', 'occurrences' => array(), 'comments' => array(), 'context' => null), 'context|A' => array('id' => 'context', 'ids' => array('singular' => 'context'), 'flags' => array(), 'translated' => 'context A', 'occurrences' => array(), 'comments' => array(), 'context' => 'A'), 'context|B' => array('id' => 'context', 'ids' => array('singular' => 'context'), 'flags' => array(), 'translated' => 'context B', 'occurrences' => array(), 'comments' => array(), 'context' => 'B'));
$result = $this->adapter->read('message', 'de', null);
unset($result['pluralRule']);
$this->assertEqual($expected, $result);
}