| @@ 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 | { |
|
| @@ 1101-1107 (lines=7) @@ | ||
| 1098 | $this->intersect([1], [3])->values()->toArray()->shouldReturn([1, 3]); |
|
| 1099 | } |
|
| 1100 | ||
| 1101 | function it_can_check_if_size_is_exactly_n() |
|
| 1102 | { |
|
| 1103 | $this->beConstructedWith([1, 2]); |
|
| 1104 | $this->sizeIs(2)->shouldReturn(true); |
|
| 1105 | $this->sizeIs(3)->shouldReturn(false); |
|
| 1106 | $this->sizeIs(0)->shouldReturn(false); |
|
| 1107 | } |
|
| 1108 | ||
| 1109 | function it_can_check_if_size_is_less_than_n() |
|
| 1110 | { |
|
| @@ 1109-1115 (lines=7) @@ | ||
| 1106 | $this->sizeIs(0)->shouldReturn(false); |
|
| 1107 | } |
|
| 1108 | ||
| 1109 | function it_can_check_if_size_is_less_than_n() |
|
| 1110 | { |
|
| 1111 | $this->beConstructedWith([1, 2]); |
|
| 1112 | $this->sizeIsLessThan(0)->shouldReturn(false); |
|
| 1113 | $this->sizeIsLessThan(2)->shouldReturn(false); |
|
| 1114 | $this->sizeIsLessThan(3)->shouldReturn(true); |
|
| 1115 | } |
|
| 1116 | ||
| 1117 | function it_can_check_if_size_is_greater_than_n() |
|
| 1118 | { |
|
| @@ 1117-1123 (lines=7) @@ | ||
| 1114 | $this->sizeIsLessThan(3)->shouldReturn(true); |
|
| 1115 | } |
|
| 1116 | ||
| 1117 | function it_can_check_if_size_is_greater_than_n() |
|
| 1118 | { |
|
| 1119 | $this->beConstructedWith([1, 2]); |
|
| 1120 | $this->sizeIsGreaterThan(2)->shouldReturn(false); |
|
| 1121 | $this->sizeIsGreaterThan(1)->shouldReturn(true); |
|
| 1122 | $this->sizeIsGreaterThan(0)->shouldReturn(true); |
|
| 1123 | } |
|
| 1124 | ||
| 1125 | function it_can_check_if_size_is_between_n_and_m() |
|
| 1126 | { |
|