Code Duplication    Length = 3-3 lines in 2 locations

lib/Cake/Test/Case/Model/ModelReadTest.php 2 locations

@@ 152-154 (lines=3) @@
149
			'fields' => array('Thread.project_id', 'COUNT(*) AS total')
150
		));
151
		$result = array();
152
		foreach ($rows as $row) {
153
			$result[$row['Thread']['project_id']] = $row[0]['total'];
154
		}
155
		$expected = array(
156
			1 => 2,
157
			2 => 1
@@ 167-169 (lines=3) @@
164
			'order' => 'Thread.project_id'
165
		));
166
		$result = array();
167
		foreach ($rows as $row) {
168
			$result[$row['Thread']['project_id']] = $row[0]['total'];
169
		}
170
		$expected = array(
171
			1 => 2,
172
			2 => 1