Code Duplication    Length = 10-10 lines in 11 locations

tests/Filter/EqualsSpec.php 1 location

@@ 194-203 (lines=10) @@
191
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
192
    }
193
194
    public function it_is_satisfied_in_combo_context(): void
195
    {
196
        $owner = ['name' => 'ABC', 'based' => 123];
197
        $game = ['name' => 'Tetris', 'owner' => $owner];
198
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
199
200
        $this->beConstructedWith('name', 'ABC', 'owner');
201
202
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
203
    }
204
}
205

tests/Filter/GreaterOrEqualThanSpec.php 1 location

@@ 198-207 (lines=10) @@
195
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
196
    }
197
198
    public function it_is_satisfied_in_combo_context(): void
199
    {
200
        $owner = ['name' => 'ABC', 'based' => 123];
201
        $game = ['name' => 'Tetris', 'owner' => $owner];
202
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
203
204
        $this->beConstructedWith('based', 123, 'owner');
205
206
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
207
    }
208
}
209

tests/Filter/GreaterThanSpec.php 1 location

@@ 205-214 (lines=10) @@
202
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
203
    }
204
205
    public function it_is_satisfied_in_combo_context(): void
206
    {
207
        $owner = ['name' => 'ABC', 'based' => 123];
208
        $game = ['name' => 'Tetris', 'owner' => $owner];
209
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
210
211
        $this->beConstructedWith('based', 100, 'owner');
212
213
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
214
    }
215
}
216

tests/Filter/InSpec.php 1 location

@@ 186-195 (lines=10) @@
183
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
184
    }
185
186
    public function it_is_satisfied_in_combo_context(): void
187
    {
188
        $owner = ['name' => 'ABC', 'based' => 123];
189
        $game = ['name' => 'Tetris', 'owner' => $owner];
190
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
191
192
        $this->beConstructedWith('name', ['ABC', 'GHI'], 'owner');
193
194
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
195
    }
196
}
197

tests/Filter/IsNotNullSpec.php 1 location

@@ 203-212 (lines=10) @@
200
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
201
    }
202
203
    public function it_is_satisfied_in_combo_context(): void
204
    {
205
        $owner = ['name' => 'ABC', 'based' => 123];
206
        $game = ['name' => 'Tetris', 'owner' => $owner];
207
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
208
209
        $this->beConstructedWith('based', 'owner');
210
211
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
212
    }
213
}
214

tests/Filter/IsNullSpec.php 1 location

@@ 200-209 (lines=10) @@
197
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
198
    }
199
200
    public function it_is_satisfied_in_combo_context(): void
201
    {
202
        $owner = ['name' => 'ABC', 'based' => null];
203
        $game = ['name' => 'Tetris', 'owner' => $owner];
204
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
205
206
        $this->beConstructedWith('based', 'owner');
207
208
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
209
    }
210
}
211

tests/Filter/LessOrEqualThanSpec.php 1 location

@@ 202-211 (lines=10) @@
199
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
200
    }
201
202
    public function it_is_satisfied_in_combo_context(): void
203
    {
204
        $owner = ['name' => 'ABC', 'based' => 123];
205
        $game = ['name' => 'Tetris', 'owner' => $owner];
206
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
207
208
        $this->beConstructedWith('name', 'ABC', 'owner');
209
210
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
211
    }
212
}
213

tests/Filter/LessThanSpec.php 1 location

@@ 205-214 (lines=10) @@
202
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
203
    }
204
205
    public function it_is_satisfied_in_combo_context(): void
206
    {
207
        $owner = ['name' => 'ABC', 'based' => 123];
208
        $game = ['name' => 'Tetris', 'owner' => $owner];
209
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
210
211
        $this->beConstructedWith('based', 200, 'owner');
212
213
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
214
    }
215
}
216

tests/Filter/LikeSpec.php 1 location

@@ 354-363 (lines=10) @@
351
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
352
    }
353
354
    public function it_is_satisfied_in_combo_context(): void
355
    {
356
        $owner = ['name' => 'ABC', 'based' => 123];
357
        $game = ['name' => 'Tetris', 'owner' => $owner];
358
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
359
360
        $this->beConstructedWith('name', 'BC', Like::CONTAINS, 'owner');
361
362
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
363
    }
364
}
365

tests/Filter/NotEqualsSpec.php 1 location

@@ 193-202 (lines=10) @@
190
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
191
    }
192
193
    public function it_is_satisfied_in_combo_context(): void
194
    {
195
        $owner = ['name' => 'ABC', 'based' => 123];
196
        $game = ['name' => 'Tetris', 'owner' => $owner];
197
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
198
199
        $this->beConstructedWith('name', 'DEF', 'owner');
200
201
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
202
    }
203
}
204

tests/Filter/IsEmptySpec.php 1 location

@@ 194-203 (lines=10) @@
191
        $this->filterCollection($players, 'inGame')->shouldYield([$players[2]]);
192
    }
193
194
    public function it_is_satisfied_in_combo_context(): void
195
    {
196
        $owner = ['name' => 'ABC', 'based' => null];
197
        $game = ['name' => 'Tetris', 'owner' => $owner];
198
        $player = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $game];
199
200
        $this->beConstructedWith('based', 'owner');
201
202
        $this->isSatisfiedBy($player, 'inGame')->shouldBe(true);
203
    }
204
}
205