| @@ 451-462 (lines=12) @@ | ||
| 448 | ->shouldReturn(true); |
|
| 449 | } |
|
| 450 | ||
| 451 | function it_can_check_if_it_contains_a_value() |
|
| 452 | { |
|
| 453 | $this->beConstructedWith([1, 3, 3, 2,]); |
|
| 454 | ||
| 455 | $this |
|
| 456 | ->contains(3) |
|
| 457 | ->shouldReturn(true); |
|
| 458 | ||
| 459 | $this |
|
| 460 | ->contains(true) |
|
| 461 | ->shouldReturn(false); |
|
| 462 | } |
|
| 463 | ||
| 464 | function it_can_reverse() |
|
| 465 | { |
|
| @@ 1092-1098 (lines=7) @@ | ||
| 1089 | $this->intersect([1], [3])->values()->toArray()->shouldReturn([1, 3]); |
|
| 1090 | } |
|
| 1091 | ||
| 1092 | function it_can_check_if_size_is_exactly_n() |
|
| 1093 | { |
|
| 1094 | $this->beConstructedWith([1, 2]); |
|
| 1095 | $this->sizeIs(2)->shouldReturn(true); |
|
| 1096 | $this->sizeIs(3)->shouldReturn(false); |
|
| 1097 | $this->sizeIs(0)->shouldReturn(false); |
|
| 1098 | } |
|
| 1099 | ||
| 1100 | function it_can_check_if_size_is_less_than_n() |
|
| 1101 | { |
|
| @@ 1100-1106 (lines=7) @@ | ||
| 1097 | $this->sizeIs(0)->shouldReturn(false); |
|
| 1098 | } |
|
| 1099 | ||
| 1100 | function it_can_check_if_size_is_less_than_n() |
|
| 1101 | { |
|
| 1102 | $this->beConstructedWith([1, 2]); |
|
| 1103 | $this->sizeIsLessThan(0)->shouldReturn(false); |
|
| 1104 | $this->sizeIsLessThan(2)->shouldReturn(false); |
|
| 1105 | $this->sizeIsLessThan(3)->shouldReturn(true); |
|
| 1106 | } |
|
| 1107 | ||
| 1108 | function it_can_check_if_size_is_greater_than_n() |
|
| 1109 | { |
|
| @@ 1108-1114 (lines=7) @@ | ||
| 1105 | $this->sizeIsLessThan(3)->shouldReturn(true); |
|
| 1106 | } |
|
| 1107 | ||
| 1108 | function it_can_check_if_size_is_greater_than_n() |
|
| 1109 | { |
|
| 1110 | $this->beConstructedWith([1, 2]); |
|
| 1111 | $this->sizeIsGreaterThan(2)->shouldReturn(false); |
|
| 1112 | $this->sizeIsGreaterThan(1)->shouldReturn(true); |
|
| 1113 | $this->sizeIsGreaterThan(0)->shouldReturn(true); |
|
| 1114 | } |
|
| 1115 | ||
| 1116 | function it_can_check_if_size_is_between_n_and_m() |
|
| 1117 | { |
|