1 | <?php |
||
8 | class ArraySplitTest extends TestCase |
||
9 | { |
||
10 | /** |
||
11 | * @test |
||
12 | */ |
||
13 | public function it_can_handle_an_empty_array() |
||
17 | |||
18 | /** |
||
19 | * @dataProvider argumentsProvider |
||
20 | * @test |
||
21 | */ |
||
22 | public function it_throws_exception_when_second_parameter_is_lower_than_1($numberOfPieces, $mustThrow) |
||
31 | |||
32 | public function argumentsProvider() |
||
42 | |||
43 | /** |
||
44 | * @test |
||
45 | */ |
||
46 | public function it_splits_an_array_in_two_by_default() |
||
50 | |||
51 | /** |
||
52 | * @test |
||
53 | */ |
||
54 | public function it_splits_an_array_in_two_by_default_while_preserving_keys() |
||
58 | |||
59 | /** |
||
60 | * @dataProvider arrayProvider |
||
61 | * |
||
62 | * @test |
||
63 | * |
||
64 | * @param $array |
||
65 | * @param $splitIntoNumber |
||
66 | * @param $expectedArray |
||
67 | */ |
||
68 | public function it_can_split_an_array_in_equal_pieces($array, $splitIntoNumber, $expectedArray) |
||
72 | |||
73 | public function arrayProvider() |
||
87 | } |
||
88 |