Source

						public function testMergeOccurrences() {
		$item = array(
			'id' => 'test',
			'occurrences' => array(array('file' => 'a.php', 'line' => 2))
		);
		$data = $this->adapter->merge(array(), $item);

		$item = array(
			'id' => 'test',
			'occurrences' => array(array('file' => 'b.php', 'line' => 55))
		);
		$expected = array(
			'test' => array(
				'id' => 'test',
				'ids' => array(),
				'translated' => null,
				'flags' => array(),
				'comments' => array(),
				'occurrences' => array(
					array('file' => 'a.php', 'line' => 2),
					array('file' => 'b.php', 'line' => 55)
				)
		));
		$result = $this->adapter->merge($data, $item);
		$this->assertEqual($expected, $result);
	}