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