Code Duplication    Length = 10-11 lines in 2 locations

tests/model/DataListTest.php 2 locations

@@ 1119-1129 (lines=11) @@
1116
	/**
1117
	 * $list->exclude(array('Name'=>'bob, 'Age'=>array(21, 43))); // exclude bob with Age 21 or 43
1118
	 */
1119
	public function testMultipleExcludeWithMultipleThatCheersEitherTeam() {
1120
		$list = DataObjectTest_TeamComment::get();
1121
		$list = $list->exclude(array('Name'=>'Bob', 'TeamID'=>array(
1122
			$this->idFromFixture('DataObjectTest_Team', 'team1'),
1123
			$this->idFromFixture('DataObjectTest_Team', 'team2')
1124
		)));
1125
		$list = $list->sort('Name');
1126
		$this->assertEquals(2, $list->count());
1127
		$this->assertEquals('Joe', $list->first()->Name, 'First comment should be from Phil');
1128
		$this->assertEquals('Phil', $list->last()->Name, 'First comment should be from Phil');
1129
	}
1130
1131
	/**
1132
	 * $list->exclude(array('Name'=>'bob, 'Age'=>array(21, 43))); // negative version
@@ 1167-1176 (lines=10) @@
1164
	/**
1165
	 *  $list->exclude(array('Name'=>array('bob','phil'), 'Age'=>array(21, 43)));
1166
	 */
1167
	public function testMultipleExcludeWithTwoArrayOneTeam() {
1168
		$list = DataObjectTest_TeamComment::get();
1169
		$list = $list->exclude(array(
1170
			'Name' => array('Bob', 'Phil'),
1171
			'TeamID' => array($this->idFromFixture('DataObjectTest_Team', 'team1'))));
1172
		$list = $list->sort('Name');
1173
		$this->assertEquals(2, $list->count());
1174
		$this->assertEquals('Joe', $list->first()->Name, 'First comment should be from Joe');
1175
		$this->assertEquals('Phil', $list->last()->Name, 'Last comment should be from Phil');
1176
	}
1177
1178
	/**
1179
	 *