Tests if the output is normalized and doesn't depend on the input format.

Returns

void

Source

						public function testInputFormatNormalization() {
		$data = array('house' => 'Haus');
		Catalog::write('runtime', 'message', 'de', $data);
		$result = Catalog::read('runtime', 'message', 'de', array('lossy' => false));
		$expected = array('house' => array(
			'id' => 'house',
			'ids' => array(),
			'translated' => 'Haus',
			'flags' => array(),
			'comments' => array(),
			'occurrences' => array()
		));
		$this->assertEqual($expected, $result);

		$data = array('house' => array(
			'id' => 'house',
			'ids' => array(),
			'translated' => 'Haus',
			'flags' => array(),
			'comments' => array(),
			'occurrences' => array()
		));
		Catalog::write('runtime', 'message', 'de', $data);
		$result = Catalog::read('runtime', 'message', 'de', array('lossy' => false));
		$expected = array('house' => array(
			'id' => 'house',
			'ids' => array(),
			'translated' => 'Haus',
			'flags' => array(),
			'comments' => array(),
			'occurrences' => array()
		));
		$this->assertEqual($expected, $result);
	}