tests/Filter/InstanceOfXSpec.php 1 location
|
@@ 126-134 (lines=9) @@
|
| 123 |
|
$this->isSatisfiedBy($player)->shouldBe(false); |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
public function it_is_satisfied_in_context_with_object(): void |
| 127 |
|
{ |
| 128 |
|
$game = new Game('Tetris'); |
| 129 |
|
$player = new Player('Moe', 'M', 1230, $game); |
| 130 |
|
|
| 131 |
|
$this->beConstructedWith(Player::class, 'inGame'); |
| 132 |
|
|
| 133 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 134 |
|
} |
| 135 |
|
} |
| 136 |
|
|
tests/Filter/IsNotNullSpec.php 1 location
|
@@ 132-141 (lines=10) @@
|
| 129 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
public function it_is_satisfied_in_context_with_object(): void |
| 133 |
|
{ |
| 134 |
|
$releaseAt = new \DateTimeImmutable(); |
| 135 |
|
$game = new Game('Tetris', $releaseAt); |
| 136 |
|
$player = new Player('Moe', 'M', 1230, $game); |
| 137 |
|
|
| 138 |
|
$this->beConstructedWith('releaseAt', 'inGame'); |
| 139 |
|
|
| 140 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
public function it_filter_array_collection_in_context(): void |
| 144 |
|
{ |
tests/Filter/IsNullSpec.php 1 location
|
@@ 131-139 (lines=9) @@
|
| 128 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
public function it_is_satisfied_in_context_with_object(): void |
| 132 |
|
{ |
| 133 |
|
$game = new Game('Tetris'); |
| 134 |
|
$player = new Player('Moe', 'M', 1230, $game); |
| 135 |
|
|
| 136 |
|
$this->beConstructedWith('releaseAt', 'inGame'); |
| 137 |
|
|
| 138 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
public function it_filter_array_collection_in_context(): void |
| 142 |
|
{ |
tests/Filter/LikeSpec.php 1 location
|
@@ 286-294 (lines=9) @@
|
| 283 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
public function it_is_satisfied_in_context_with_object_contains(): void |
| 287 |
|
{ |
| 288 |
|
$game = new Game('Tetris'); |
| 289 |
|
$player = new Player('Moe', 'M', 1230, $game); |
| 290 |
|
|
| 291 |
|
$this->beConstructedWith('name', 'tr', Like::CONTAINS, 'inGame'); |
| 292 |
|
|
| 293 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 294 |
|
} |
| 295 |
|
|
| 296 |
|
public function it_filter_array_collection_in_context(): void |
| 297 |
|
{ |
tests/Filter/NotEqualsSpec.php 1 location
|
@@ 126-134 (lines=9) @@
|
| 123 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
public function it_is_satisfied_in_context_with_object(): void |
| 127 |
|
{ |
| 128 |
|
$game = new Game('Tetris'); |
| 129 |
|
$player = new Player('Moe', 'M', 1230, $game); |
| 130 |
|
|
| 131 |
|
$this->beConstructedWith('name', 'Mahjong', 'inGame'); |
| 132 |
|
|
| 133 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
public function it_filter_array_collection_in_context(): void |
| 137 |
|
{ |
tests/Logic/NotSpec.php 1 location
|
@@ 192-200 (lines=9) @@
|
| 189 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
public function it_is_satisfied_object_collection_in_context(): void |
| 193 |
|
{ |
| 194 |
|
$this->beConstructedWith(new Equals('name', 'Mahjong')); |
| 195 |
|
|
| 196 |
|
$game = new Game('Tetris'); |
| 197 |
|
$player = new Player('Moe', 'M', 1230, $game); |
| 198 |
|
|
| 199 |
|
$this->isSatisfiedBy($player, 'inGame')->shouldBe(true); |
| 200 |
|
} |
| 201 |
|
} |
| 202 |
|
|
tests/Filter/IsEmptySpec.php 1 location
|
@@ 125-133 (lines=9) @@
|
| 122 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
public function it_is_satisfied_in_context_with_object(): void |
| 126 |
|
{ |
| 127 |
|
$game = new Game('Tetris'); |
| 128 |
|
$player = new Player('Moe', 'M', 1230, $game); |
| 129 |
|
|
| 130 |
|
$this->beConstructedWith('releaseAt', 'inGame'); |
| 131 |
|
|
| 132 |
|
$this->isSatisfiedBy($player)->shouldBe(true); |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
public function it_filter_array_collection_in_context(): void |
| 136 |
|
{ |