Extends
lithium\test\UnitSource
public function testReadPoSingleItem() {
$file = "{$this->_path}/de/LC_MESSAGES/default.po";
$data = <<<EOD
msgid "singular 1"
msgstr "translated 1"
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()
)
);
$result = $this->adapter->read('message', 'de', null);
$this->assertEqual($expected, $result);
}