tests/Filter/GreaterOrEqualThanSpec.php 1 location
|
@@ 107-118 (lines=12) @@
|
104 |
|
$this->isSatisfiedBy($playerC)->shouldBe(true); |
105 |
|
} |
106 |
|
|
107 |
|
public function it_is_satisfied_with_object(): void |
108 |
|
{ |
109 |
|
$this->beConstructedWith('points', 2500, null); |
110 |
|
|
111 |
|
$playerA = new Player('Joe', 'M', 2500); |
112 |
|
$playerB = new Player('Moe', 'M', 1230); |
113 |
|
$playerC = new Player('Alice', 'F', 9001); |
114 |
|
|
115 |
|
$this->isSatisfiedBy($playerA)->shouldBe(true); |
116 |
|
$this->isSatisfiedBy($playerB)->shouldBe(false); |
117 |
|
$this->isSatisfiedBy($playerC)->shouldBe(true); |
118 |
|
} |
119 |
|
|
120 |
|
public function it_is_satisfied_in_context_with_array(): void |
121 |
|
{ |
tests/Filter/GreaterThanSpec.php 1 location
|
@@ 107-118 (lines=12) @@
|
104 |
|
$this->isSatisfiedBy($playerC)->shouldBe(true); |
105 |
|
} |
106 |
|
|
107 |
|
public function it_is_satisfied_with_object(): void |
108 |
|
{ |
109 |
|
$this->beConstructedWith('points', 2500, null); |
110 |
|
|
111 |
|
$playerA = new Player('Joe', 'M', 2500); |
112 |
|
$playerB = new Player('Moe', 'M', 1230); |
113 |
|
$playerC = new Player('Alice', 'F', 9001); |
114 |
|
|
115 |
|
$this->isSatisfiedBy($playerA)->shouldBe(false); |
116 |
|
$this->isSatisfiedBy($playerB)->shouldBe(false); |
117 |
|
$this->isSatisfiedBy($playerC)->shouldBe(true); |
118 |
|
} |
119 |
|
|
120 |
|
public function it_is_satisfied_in_context_with_array(): void |
121 |
|
{ |
tests/Filter/IsEmptySpec.php 1 location
|
@@ 102-113 (lines=12) @@
|
99 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
100 |
|
} |
101 |
|
|
102 |
|
public function it_is_satisfied_with_object(): void |
103 |
|
{ |
104 |
|
$this->beConstructedWith('points', null); |
105 |
|
|
106 |
|
$playerA = new Player('Joe', 'M', 2500); |
107 |
|
$playerB = new Player('Moe', 'M', null); |
108 |
|
$playerC = new Player('Alice', 'F', 9001); |
109 |
|
|
110 |
|
$this->isSatisfiedBy($playerA)->shouldBe(false); |
111 |
|
$this->isSatisfiedBy($playerB)->shouldBe(true); |
112 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
113 |
|
} |
114 |
|
|
115 |
|
public function it_is_satisfied_in_context_with_array(): void |
116 |
|
{ |
tests/Filter/IsNotNullSpec.php 1 location
|
@@ 108-119 (lines=12) @@
|
105 |
|
$this->isSatisfiedBy($playerC)->shouldBe(true); |
106 |
|
} |
107 |
|
|
108 |
|
public function it_is_satisfied_with_object(): void |
109 |
|
{ |
110 |
|
$this->beConstructedWith('points', null); |
111 |
|
|
112 |
|
$playerA = new Player('Joe', 'M', 2500); |
113 |
|
$playerB = new Player('Moe', 'M', null); |
114 |
|
$playerC = new Player('Alice', 'F', 9001); |
115 |
|
|
116 |
|
$this->isSatisfiedBy($playerA)->shouldBe(true); |
117 |
|
$this->isSatisfiedBy($playerB)->shouldBe(false); |
118 |
|
$this->isSatisfiedBy($playerC)->shouldBe(true); |
119 |
|
} |
120 |
|
|
121 |
|
public function it_is_satisfied_in_context_with_array(): void |
122 |
|
{ |
tests/Filter/IsNullSpec.php 1 location
|
@@ 108-119 (lines=12) @@
|
105 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
106 |
|
} |
107 |
|
|
108 |
|
public function it_is_satisfied_with_object(): void |
109 |
|
{ |
110 |
|
$this->beConstructedWith('points', null); |
111 |
|
|
112 |
|
$playerA = new Player('Joe', 'M', 2500); |
113 |
|
$playerB = new Player('Moe', 'M', null); |
114 |
|
$playerC = new Player('Alice', 'F', 9001); |
115 |
|
|
116 |
|
$this->isSatisfiedBy($playerA)->shouldBe(false); |
117 |
|
$this->isSatisfiedBy($playerB)->shouldBe(true); |
118 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
119 |
|
} |
120 |
|
|
121 |
|
public function it_is_satisfied_in_context_with_array(): void |
122 |
|
{ |
tests/Filter/LessOrEqualThanSpec.php 1 location
|
@@ 107-118 (lines=12) @@
|
104 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
105 |
|
} |
106 |
|
|
107 |
|
public function it_is_satisfied_with_object(): void |
108 |
|
{ |
109 |
|
$this->beConstructedWith('points', 9000, null); |
110 |
|
|
111 |
|
$playerA = new Player('Joe', 'M', 2500); |
112 |
|
$playerB = new Player('Moe', 'M', 1230); |
113 |
|
$playerC = new Player('Alice', 'F', 9001); |
114 |
|
|
115 |
|
$this->isSatisfiedBy($playerA)->shouldBe(true); |
116 |
|
$this->isSatisfiedBy($playerB)->shouldBe(true); |
117 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
118 |
|
} |
119 |
|
|
120 |
|
public function it_is_satisfied_in_context_with_array(): void |
121 |
|
{ |
tests/Filter/LessThanSpec.php 1 location
|
@@ 107-118 (lines=12) @@
|
104 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
105 |
|
} |
106 |
|
|
107 |
|
public function it_is_satisfied_with_object(): void |
108 |
|
{ |
109 |
|
$this->beConstructedWith('points', 2500, null); |
110 |
|
|
111 |
|
$playerA = new Player('Joe', 'M', 2500); |
112 |
|
$playerB = new Player('Moe', 'M', 1230); |
113 |
|
$playerC = new Player('Alice', 'F', 9001); |
114 |
|
|
115 |
|
$this->isSatisfiedBy($playerA)->shouldBe(false); |
116 |
|
$this->isSatisfiedBy($playerB)->shouldBe(true); |
117 |
|
$this->isSatisfiedBy($playerC)->shouldBe(false); |
118 |
|
} |
119 |
|
|
120 |
|
public function it_is_satisfied_in_context_with_array(): void |
121 |
|
{ |