| @@ 507-518 (lines=12) @@ | ||
| 504 | ->shouldReturn(true); |
|
| 505 | } |
|
| 506 | ||
| 507 | function it_can_check_if_it_contains_a_value() |
|
| 508 | { |
|
| 509 | $this->beConstructedWith([1, 3, 3, 2,]); |
|
| 510 | ||
| 511 | $this |
|
| 512 | ->contains(3) |
|
| 513 | ->shouldReturn(true); |
|
| 514 | ||
| 515 | $this |
|
| 516 | ->contains(true) |
|
| 517 | ->shouldReturn(false); |
|
| 518 | } |
|
| 519 | ||
| 520 | function it_can_reverse() |
|
| 521 | { |
|
| @@ 1148-1154 (lines=7) @@ | ||
| 1145 | $this->intersect([1], [3])->values()->toArray()->shouldReturn([1, 3]); |
|
| 1146 | } |
|
| 1147 | ||
| 1148 | function it_can_check_if_size_is_exactly_n() |
|
| 1149 | { |
|
| 1150 | $this->beConstructedWith([1, 2]); |
|
| 1151 | $this->sizeIs(2)->shouldReturn(true); |
|
| 1152 | $this->sizeIs(3)->shouldReturn(false); |
|
| 1153 | $this->sizeIs(0)->shouldReturn(false); |
|
| 1154 | } |
|
| 1155 | ||
| 1156 | function it_can_check_if_size_is_less_than_n() |
|
| 1157 | { |
|
| @@ 1156-1162 (lines=7) @@ | ||
| 1153 | $this->sizeIs(0)->shouldReturn(false); |
|
| 1154 | } |
|
| 1155 | ||
| 1156 | function it_can_check_if_size_is_less_than_n() |
|
| 1157 | { |
|
| 1158 | $this->beConstructedWith([1, 2]); |
|
| 1159 | $this->sizeIsLessThan(0)->shouldReturn(false); |
|
| 1160 | $this->sizeIsLessThan(2)->shouldReturn(false); |
|
| 1161 | $this->sizeIsLessThan(3)->shouldReturn(true); |
|
| 1162 | } |
|
| 1163 | ||
| 1164 | function it_can_check_if_size_is_greater_than_n() |
|
| 1165 | { |
|
| @@ 1164-1170 (lines=7) @@ | ||
| 1161 | $this->sizeIsLessThan(3)->shouldReturn(true); |
|
| 1162 | } |
|
| 1163 | ||
| 1164 | function it_can_check_if_size_is_greater_than_n() |
|
| 1165 | { |
|
| 1166 | $this->beConstructedWith([1, 2]); |
|
| 1167 | $this->sizeIsGreaterThan(2)->shouldReturn(false); |
|
| 1168 | $this->sizeIsGreaterThan(1)->shouldReturn(true); |
|
| 1169 | $this->sizeIsGreaterThan(0)->shouldReturn(true); |
|
| 1170 | } |
|
| 1171 | ||
| 1172 | function it_can_check_if_size_is_between_n_and_m() |
|
| 1173 | { |
|