public function testReadWithContext()
{
mkdir("{$this->_path}/fr/message", 0755, true);
$data = <<<EOD
<?php
return array(
\t'green' => 'vert',
\t'fast|speed' => 'rapide',
\t'fast|go without food' => 'jeûner'
);
?>
EOD;
file_put_contents("{$this->_path}/fr/message/default.php", $data);
$result = $this->adapter->read('message', 'fr', null);
$expected = array('green' => array('id' => 'green', 'ids' => array(), 'translated' => 'vert', 'flags' => array(), 'comments' => array(), 'occurrences' => array()), 'fast|speed' => array('id' => 'fast', 'ids' => array(), 'translated' => 'rapide', 'flags' => array(), 'comments' => array(), 'occurrences' => array(), 'context' => 'speed'), 'fast|go without food' => array('id' => 'fast', 'ids' => array(), 'translated' => 'jeûner', 'flags' => array(), 'comments' => array(), 'occurrences' => array(), 'context' => 'go without food'));
$this->assertEqual($expected, $result);
}