tests/Filter/GreaterThanSpec.php 1 location
|
@@ 188-203 (lines=16) @@
|
185 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
186 |
|
} |
187 |
|
|
188 |
|
public function it_filter_array_collection_in_combo_context(): void |
189 |
|
{ |
190 |
|
$tetrisOwner = ['name' => 'ABC', 'based' => 321]; |
191 |
|
$mahjongOwner = ['name' => 'DEF', 'based' => 123]; |
192 |
|
$tetris = ['name' => 'Tetris', 'owner' => $tetrisOwner]; |
193 |
|
$mahjong = ['name' => 'Mahjong', 'owner' => $mahjongOwner]; |
194 |
|
$players = [ |
195 |
|
['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500, 'inGame' => $mahjong], |
196 |
|
['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $mahjong], |
197 |
|
['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001, 'inGame' => $tetris], |
198 |
|
]; |
199 |
|
|
200 |
|
$this->beConstructedWith('based', 200, 'owner'); |
201 |
|
|
202 |
|
$this->filterCollection($players, 'inGame')->shouldYield([$players[2]]); |
203 |
|
} |
204 |
|
|
205 |
|
public function it_is_satisfied_in_combo_context(): void |
206 |
|
{ |
tests/Filter/InSpec.php 1 location
|
@@ 169-184 (lines=16) @@
|
166 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
167 |
|
} |
168 |
|
|
169 |
|
public function it_filter_array_collection_in_combo_context(): void |
170 |
|
{ |
171 |
|
$tetrisOwner = ['name' => 'ABC', 'based' => 123]; |
172 |
|
$mahjongOwner = ['name' => 'DEF', 'based' => 321]; |
173 |
|
$tetris = ['name' => 'Tetris', 'owner' => $tetrisOwner]; |
174 |
|
$mahjong = ['name' => 'Mahjong', 'owner' => $mahjongOwner]; |
175 |
|
$players = [ |
176 |
|
['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500, 'inGame' => $mahjong], |
177 |
|
['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $mahjong], |
178 |
|
['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001, 'inGame' => $tetris], |
179 |
|
]; |
180 |
|
|
181 |
|
$this->beConstructedWith('name', ['ABC', 'GHI'], 'owner'); |
182 |
|
|
183 |
|
$this->filterCollection($players, 'inGame')->shouldYield([$players[2]]); |
184 |
|
} |
185 |
|
|
186 |
|
public function it_is_satisfied_in_combo_context(): void |
187 |
|
{ |
tests/Filter/IsNotNullSpec.php 1 location
|
@@ 186-201 (lines=16) @@
|
183 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
184 |
|
} |
185 |
|
|
186 |
|
public function it_filter_array_collection_in_combo_context(): void |
187 |
|
{ |
188 |
|
$tetrisOwner = ['name' => 'ABC', 'based' => 123]; |
189 |
|
$mahjongOwner = ['name' => 'DEF', 'based' => null]; |
190 |
|
$tetris = ['name' => 'Tetris', 'owner' => $tetrisOwner]; |
191 |
|
$mahjong = ['name' => 'Mahjong', 'owner' => $mahjongOwner]; |
192 |
|
$players = [ |
193 |
|
['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500, 'inGame' => $mahjong], |
194 |
|
['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $mahjong], |
195 |
|
['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001, 'inGame' => $tetris], |
196 |
|
]; |
197 |
|
|
198 |
|
$this->beConstructedWith('based', 'owner'); |
199 |
|
|
200 |
|
$this->filterCollection($players, 'inGame')->shouldYield([$players[2]]); |
201 |
|
} |
202 |
|
|
203 |
|
public function it_is_satisfied_in_combo_context(): void |
204 |
|
{ |
tests/Filter/IsNullSpec.php 1 location
|
@@ 183-198 (lines=16) @@
|
180 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
181 |
|
} |
182 |
|
|
183 |
|
public function it_filter_array_collection_in_combo_context(): void |
184 |
|
{ |
185 |
|
$tetrisOwner = ['name' => 'ABC', 'based' => null]; |
186 |
|
$mahjongOwner = ['name' => 'DEF', 'based' => 321]; |
187 |
|
$tetris = ['name' => 'Tetris', 'owner' => $tetrisOwner]; |
188 |
|
$mahjong = ['name' => 'Mahjong', 'owner' => $mahjongOwner]; |
189 |
|
$players = [ |
190 |
|
['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500, 'inGame' => $mahjong], |
191 |
|
['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $mahjong], |
192 |
|
['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001, 'inGame' => $tetris], |
193 |
|
]; |
194 |
|
|
195 |
|
$this->beConstructedWith('based', 'owner'); |
196 |
|
|
197 |
|
$this->filterCollection($players, 'inGame')->shouldYield([$players[2]]); |
198 |
|
} |
199 |
|
|
200 |
|
public function it_is_satisfied_in_combo_context(): void |
201 |
|
{ |
tests/Filter/LessOrEqualThanSpec.php 1 location
|
@@ 185-200 (lines=16) @@
|
182 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
183 |
|
} |
184 |
|
|
185 |
|
public function it_filter_array_collection_in_combo_context(): void |
186 |
|
{ |
187 |
|
$tetrisOwner = ['name' => 'ABC', 'based' => 123]; |
188 |
|
$mahjongOwner = ['name' => 'DEF', 'based' => 321]; |
189 |
|
$tetris = ['name' => 'Tetris', 'owner' => $tetrisOwner]; |
190 |
|
$mahjong = ['name' => 'Mahjong', 'owner' => $mahjongOwner]; |
191 |
|
$players = [ |
192 |
|
['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500, 'inGame' => $mahjong], |
193 |
|
['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $mahjong], |
194 |
|
['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001, 'inGame' => $tetris], |
195 |
|
]; |
196 |
|
|
197 |
|
$this->beConstructedWith('based', 200, 'owner'); |
198 |
|
|
199 |
|
$this->filterCollection($players, 'inGame')->shouldYield([$players[2]]); |
200 |
|
} |
201 |
|
|
202 |
|
public function it_is_satisfied_in_combo_context(): void |
203 |
|
{ |
tests/Filter/LessThanSpec.php 1 location
|
@@ 188-203 (lines=16) @@
|
185 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
186 |
|
} |
187 |
|
|
188 |
|
public function it_filter_array_collection_in_combo_context(): void |
189 |
|
{ |
190 |
|
$tetrisOwner = ['name' => 'ABC', 'based' => 123]; |
191 |
|
$mahjongOwner = ['name' => 'DEF', 'based' => 321]; |
192 |
|
$tetris = ['name' => 'Tetris', 'owner' => $tetrisOwner]; |
193 |
|
$mahjong = ['name' => 'Mahjong', 'owner' => $mahjongOwner]; |
194 |
|
$players = [ |
195 |
|
['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500, 'inGame' => $mahjong], |
196 |
|
['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $mahjong], |
197 |
|
['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001, 'inGame' => $tetris], |
198 |
|
]; |
199 |
|
|
200 |
|
$this->beConstructedWith('based', 200, 'owner'); |
201 |
|
|
202 |
|
$this->filterCollection($players, 'inGame')->shouldYield([$players[2]]); |
203 |
|
} |
204 |
|
|
205 |
|
public function it_is_satisfied_in_combo_context(): void |
206 |
|
{ |
tests/Filter/LikeSpec.php 1 location
|
@@ 337-352 (lines=16) @@
|
334 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
335 |
|
} |
336 |
|
|
337 |
|
public function it_filter_array_collection_in_combo_context(): void |
338 |
|
{ |
339 |
|
$tetrisOwner = ['name' => 'ABC', 'based' => 123]; |
340 |
|
$mahjongOwner = ['name' => 'DEF', 'based' => 321]; |
341 |
|
$tetris = ['name' => 'Tetris', 'owner' => $tetrisOwner]; |
342 |
|
$mahjong = ['name' => 'Mahjong', 'owner' => $mahjongOwner]; |
343 |
|
$players = [ |
344 |
|
['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500, 'inGame' => $mahjong], |
345 |
|
['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $mahjong], |
346 |
|
['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001, 'inGame' => $tetris], |
347 |
|
]; |
348 |
|
|
349 |
|
$this->beConstructedWith('name', 'BC', Like::CONTAINS, 'owner'); |
350 |
|
|
351 |
|
$this->filterCollection($players, 'inGame')->shouldYield([$players[2]]); |
352 |
|
} |
353 |
|
|
354 |
|
public function it_is_satisfied_in_combo_context(): void |
355 |
|
{ |
tests/Filter/NotEqualsSpec.php 1 location
|
@@ 176-191 (lines=16) @@
|
173 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
174 |
|
} |
175 |
|
|
176 |
|
public function it_filter_array_collection_in_combo_context(): void |
177 |
|
{ |
178 |
|
$tetrisOwner = ['name' => 'ABC', 'based' => 123]; |
179 |
|
$mahjongOwner = ['name' => 'DEF', 'based' => 321]; |
180 |
|
$tetris = ['name' => 'Tetris', 'owner' => $tetrisOwner]; |
181 |
|
$mahjong = ['name' => 'Mahjong', 'owner' => $mahjongOwner]; |
182 |
|
$players = [ |
183 |
|
['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500, 'inGame' => $mahjong], |
184 |
|
['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $mahjong], |
185 |
|
['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001, 'inGame' => $tetris], |
186 |
|
]; |
187 |
|
|
188 |
|
$this->beConstructedWith('name', 'DEF', 'owner'); |
189 |
|
|
190 |
|
$this->filterCollection($players, 'inGame')->shouldYield([$players[2]]); |
191 |
|
} |
192 |
|
|
193 |
|
public function it_is_satisfied_in_combo_context(): void |
194 |
|
{ |
tests/Filter/IsEmptySpec.php 1 location
|
@@ 177-192 (lines=16) @@
|
174 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
175 |
|
} |
176 |
|
|
177 |
|
public function it_filter_array_collection_in_combo_context(): void |
178 |
|
{ |
179 |
|
$tetrisOwner = ['name' => 'ABC', 'based' => null]; |
180 |
|
$mahjongOwner = ['name' => 'DEF', 'based' => 321]; |
181 |
|
$tetris = ['name' => 'Tetris', 'owner' => $tetrisOwner]; |
182 |
|
$mahjong = ['name' => 'Mahjong', 'owner' => $mahjongOwner]; |
183 |
|
$players = [ |
184 |
|
['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500, 'inGame' => $mahjong], |
185 |
|
['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230, 'inGame' => $mahjong], |
186 |
|
['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001, 'inGame' => $tetris], |
187 |
|
]; |
188 |
|
|
189 |
|
$this->beConstructedWith('based', 'owner'); |
190 |
|
|
191 |
|
$this->filterCollection($players, 'inGame')->shouldYield([$players[2]]); |
192 |
|
} |
193 |
|
|
194 |
|
public function it_is_satisfied_in_combo_context(): void |
195 |
|
{ |