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