Source

						public function testWrittenPoHasGnuHeader() {
		$this->adapter->mo = false;

		$data = array(
			'singular 1' => array(
				'id' => 'singular 1',
				'ids' => array('singular' => 'singular 1', 'plural' => 'plural 1'),
				'flags' => array(),
				'translated' => array('translated 1-0', 'translated 1-1'),
				'occurrences' => array(),
				'comments' => array()
			),
			'singular 2' => array(
				'id' => 'singular 2',
				'ids' => array('singular' => 'singular 2', 'plural' => null),
				'flags' => array(),
				'translated' => array('translated 2'),
				'occurrences' => array(),
				'comments' => array()
			)
		);
		$this->adapter->write('message', 'de', null, $data);
		$result = file_get_contents("{$this->_path}/de/LC_MESSAGES/default.po");

		$expected = 'msgstr ""\n"Project-Id';
		$this->assertPattern("%{$expected}%", $result);

		$expected = '"Project-Id-Version: PACKAGE VERSION\\\n"\n';
		$this->assertPattern("%{$expected}%", $result);

		$expected = '"POT-Creation-Date: YEAR-MO-DA HO:MI\+ZONE\\\n"\n';
		$this->assertPattern("%{$expected}%", $result);

		$expected = '"PO-Revision-Date: YEAR-MO-DA HO:MI\+ZONE\\\n"\n';
		$this->assertPattern("%{$expected}%", $result);

		$expected = '"Last-Translator: FULL NAME <EMAIL@ADDRESS>\\\n"\n';
		$this->assertPattern("%{$expected}%", $result);

		$expected = '"Language-Team: LANGUAGE <EMAIL@ADDRESS>\\\n"\n';
		$this->assertPattern("%{$expected}%", $result);

		$expected = '"MIME-Version: 1.0\\\n"\n';
		$this->assertPattern("%{$expected}%", $result);

		$expected = '"Content-Type: text/plain; charset=UTF-8\\\n"\n';
		$this->assertPattern("%{$expected}%", $result);

		$expected = '"Content-Transfer-Encoding: 8bit\\\n"\n';
		$this->assertPattern("%{$expected}%", $result);

		$expected = '"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\\\n"\n';
		$this->assertPattern("%{$expected}%", $result);
	}