|
@@ 139-145 (lines=7) @@
|
| 136 |
|
$data->age->shouldBe(10); |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
public function it_gets_the_last_result_in_a_given_array() |
| 140 |
|
{ |
| 141 |
|
$data = $this->getWhereInLast('age', [10, 15]); |
| 142 |
|
|
| 143 |
|
$data->shouldHaveType('stdClass'); |
| 144 |
|
$data->age->shouldBe(15); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
public function it_taps_through_the_given_key_and_checks_the_given_value() |
| 148 |
|
{ |
|
@@ 208-214 (lines=7) @@
|
| 205 |
|
$data->age->shouldBe(10); |
| 206 |
|
} |
| 207 |
|
|
| 208 |
|
public function it_taps_through_the_object_to_find_the_last_with_a_given_value() |
| 209 |
|
{ |
| 210 |
|
$data = $this->getWhereInLast('kids->age', [2, 4]); |
| 211 |
|
|
| 212 |
|
$data->shouldHaveType('stdClass'); |
| 213 |
|
$data->age->shouldBe(20); |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
public function it_taps_through_a_collection_and_retrieves_a_collection() |
| 217 |
|
{ |