| @@ 525-536 (lines=12) @@ | ||
| 522 | ->shouldReturn(true); |
|
| 523 | } |
|
| 524 | ||
| 525 | function it_can_check_if_it_contains_a_value() |
|
| 526 | { |
|
| 527 | $this->beConstructedWith([1, 3, 3, 2,]); |
|
| 528 | ||
| 529 | $this |
|
| 530 | ->contains(3) |
|
| 531 | ->shouldReturn(true); |
|
| 532 | ||
| 533 | $this |
|
| 534 | ->contains(true) |
|
| 535 | ->shouldReturn(false); |
|
| 536 | } |
|
| 537 | ||
| 538 | function it_can_reverse() |
|
| 539 | { |
|
| @@ 1166-1172 (lines=7) @@ | ||
| 1163 | $this->intersect([1], [3])->values()->toArray()->shouldReturn([1, 3]); |
|
| 1164 | } |
|
| 1165 | ||
| 1166 | function it_can_check_if_size_is_exactly_n() |
|
| 1167 | { |
|
| 1168 | $this->beConstructedWith([1, 2]); |
|
| 1169 | $this->sizeIs(2)->shouldReturn(true); |
|
| 1170 | $this->sizeIs(3)->shouldReturn(false); |
|
| 1171 | $this->sizeIs(0)->shouldReturn(false); |
|
| 1172 | } |
|
| 1173 | ||
| 1174 | function it_can_check_if_size_is_less_than_n() |
|
| 1175 | { |
|
| @@ 1174-1180 (lines=7) @@ | ||
| 1171 | $this->sizeIs(0)->shouldReturn(false); |
|
| 1172 | } |
|
| 1173 | ||
| 1174 | function it_can_check_if_size_is_less_than_n() |
|
| 1175 | { |
|
| 1176 | $this->beConstructedWith([1, 2]); |
|
| 1177 | $this->sizeIsLessThan(0)->shouldReturn(false); |
|
| 1178 | $this->sizeIsLessThan(2)->shouldReturn(false); |
|
| 1179 | $this->sizeIsLessThan(3)->shouldReturn(true); |
|
| 1180 | } |
|
| 1181 | ||
| 1182 | function it_can_check_if_size_is_greater_than_n() |
|
| 1183 | { |
|
| @@ 1182-1188 (lines=7) @@ | ||
| 1179 | $this->sizeIsLessThan(3)->shouldReturn(true); |
|
| 1180 | } |
|
| 1181 | ||
| 1182 | function it_can_check_if_size_is_greater_than_n() |
|
| 1183 | { |
|
| 1184 | $this->beConstructedWith([1, 2]); |
|
| 1185 | $this->sizeIsGreaterThan(2)->shouldReturn(false); |
|
| 1186 | $this->sizeIsGreaterThan(1)->shouldReturn(true); |
|
| 1187 | $this->sizeIsGreaterThan(0)->shouldReturn(true); |
|
| 1188 | } |
|
| 1189 | ||
| 1190 | function it_can_check_if_size_is_between_n_and_m() |
|
| 1191 | { |
|