tests/Filter/GreaterOrEqualThanSpec.php 1 location
|
@@ 94-105 (lines=12) @@
|
| 91 |
|
$this->filterCollection($players)->shouldYield([$players[2]]); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
public function it_is_satisfied_with_array(): void |
| 95 |
|
{ |
| 96 |
|
$this->beConstructedWith('points', 2500, null); |
| 97 |
|
|
| 98 |
|
$playerA = ['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500]; |
| 99 |
|
$playerB = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230]; |
| 100 |
|
$playerC = ['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001]; |
| 101 |
|
|
| 102 |
|
$this->isSatisfiedBy($playerA)->shouldBe(true); |
| 103 |
|
$this->isSatisfiedBy($playerB)->shouldBe(false); |
| 104 |
|
$this->isSatisfiedBy($playerC)->shouldBe(true); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
public function it_is_satisfied_with_object(): void |
| 108 |
|
{ |
tests/Filter/GreaterThanSpec.php 1 location
|
@@ 94-105 (lines=12) @@
|
| 91 |
|
$this->filterCollection($players)->shouldYield([$players[2]]); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
public function it_is_satisfied_with_array(): void |
| 95 |
|
{ |
| 96 |
|
$this->beConstructedWith('points', 2500, null); |
| 97 |
|
|
| 98 |
|
$playerA = ['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500]; |
| 99 |
|
$playerB = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230]; |
| 100 |
|
$playerC = ['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001]; |
| 101 |
|
|
| 102 |
|
$this->isSatisfiedBy($playerA)->shouldBe(false); |
| 103 |
|
$this->isSatisfiedBy($playerB)->shouldBe(false); |
| 104 |
|
$this->isSatisfiedBy($playerC)->shouldBe(true); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
public function it_is_satisfied_with_object(): void |
| 108 |
|
{ |
tests/Filter/IsEmptySpec.php 1 location
|
@@ 89-100 (lines=12) @@
|
| 86 |
|
$this->filterCollection($players)->shouldYield([$players[1]]); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
public function it_is_satisfied_with_array(): void |
| 90 |
|
{ |
| 91 |
|
$this->beConstructedWith('points', null); |
| 92 |
|
|
| 93 |
|
$playerA = ['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500]; |
| 94 |
|
$playerB = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => null]; |
| 95 |
|
$playerC = ['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001]; |
| 96 |
|
|
| 97 |
|
$this->isSatisfiedBy($playerA)->shouldBe(false); |
| 98 |
|
$this->isSatisfiedBy($playerB)->shouldBe(true); |
| 99 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
public function it_is_satisfied_with_object(): void |
| 103 |
|
{ |
tests/Filter/IsNotNullSpec.php 1 location
|
@@ 95-106 (lines=12) @@
|
| 92 |
|
$this->filterCollection($players)->shouldYield([$players[0], $players[2]]); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
public function it_is_satisfied_with_array(): void |
| 96 |
|
{ |
| 97 |
|
$this->beConstructedWith('points', null); |
| 98 |
|
|
| 99 |
|
$playerA = ['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500]; |
| 100 |
|
$playerB = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => null]; |
| 101 |
|
$playerC = ['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001]; |
| 102 |
|
|
| 103 |
|
$this->isSatisfiedBy($playerA)->shouldBe(true); |
| 104 |
|
$this->isSatisfiedBy($playerB)->shouldBe(false); |
| 105 |
|
$this->isSatisfiedBy($playerC)->shouldBe(true); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
public function it_is_satisfied_with_object(): void |
| 109 |
|
{ |
tests/Filter/IsNullSpec.php 1 location
|
@@ 95-106 (lines=12) @@
|
| 92 |
|
$this->filterCollection($players)->shouldYield([$players[1]]); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
public function it_is_satisfied_with_array(): void |
| 96 |
|
{ |
| 97 |
|
$this->beConstructedWith('points', null); |
| 98 |
|
|
| 99 |
|
$playerA = ['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500]; |
| 100 |
|
$playerB = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => null]; |
| 101 |
|
$playerC = ['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001]; |
| 102 |
|
|
| 103 |
|
$this->isSatisfiedBy($playerA)->shouldBe(false); |
| 104 |
|
$this->isSatisfiedBy($playerB)->shouldBe(true); |
| 105 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
public function it_is_satisfied_with_object(): void |
| 109 |
|
{ |
tests/Filter/LessOrEqualThanSpec.php 1 location
|
@@ 94-105 (lines=12) @@
|
| 91 |
|
$this->filterCollection($players)->shouldYield([$players[0], $players[1]]); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
public function it_is_satisfied_with_array(): void |
| 95 |
|
{ |
| 96 |
|
$this->beConstructedWith('points', 2500, null); |
| 97 |
|
|
| 98 |
|
$playerA = ['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500]; |
| 99 |
|
$playerB = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230]; |
| 100 |
|
$playerC = ['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001]; |
| 101 |
|
|
| 102 |
|
$this->isSatisfiedBy($playerA)->shouldBe(true); |
| 103 |
|
$this->isSatisfiedBy($playerB)->shouldBe(true); |
| 104 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
public function it_is_satisfied_with_object(): void |
| 108 |
|
{ |
tests/Filter/LessThanSpec.php 1 location
|
@@ 94-105 (lines=12) @@
|
| 91 |
|
$this->filterCollection($players)->shouldYield([$players[1]]); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
public function it_is_satisfied_with_array(): void |
| 95 |
|
{ |
| 96 |
|
$this->beConstructedWith('points', 2500, null); |
| 97 |
|
|
| 98 |
|
$playerA = ['pseudo' => 'Joe', 'gender' => 'M', 'points' => 2500]; |
| 99 |
|
$playerB = ['pseudo' => 'Moe', 'gender' => 'M', 'points' => 1230]; |
| 100 |
|
$playerC = ['pseudo' => 'Alice', 'gender' => 'F', 'points' => 9001]; |
| 101 |
|
|
| 102 |
|
$this->isSatisfiedBy($playerA)->shouldBe(false); |
| 103 |
|
$this->isSatisfiedBy($playerB)->shouldBe(true); |
| 104 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
public function it_is_satisfied_with_object(): void |
| 108 |
|
{ |