public function testReadPoWithGnuHeader()
{
$file = "{$this->_path}/de/LC_MESSAGES/default.po";
$data = <<<'EOD'
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-02-21 13:23+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
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(), 'context' => null));
$result = $this->adapter->read('message', 'de', null);
unset($result['pluralRule']);
$this->assertEqual($expected, $result);
}