| 1 | <?php |
||
| 21 | final class UtilitiesTest extends TestCase |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * An array containing chars |
||
| 25 | * |
||
| 26 | * @var array<string> |
||
| 27 | */ |
||
| 28 | private $arr = [ |
||
| 29 | 'a', |
||
| 30 | 'b', |
||
| 31 | 'c', |
||
| 32 | '1', |
||
| 33 | 'd', |
||
| 34 | 'b', |
||
| 35 | 'e', |
||
| 36 | ]; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @dataProvider pregSplitArrayProvider() |
||
| 40 | * |
||
| 41 | * @covers \GitElephant\Utilities::pregSplitArray |
||
| 42 | * |
||
| 43 | * @param array<string> $expected |
||
| 44 | * @param array<string> $list |
||
| 45 | * @param string $pattern |
||
| 46 | * @return void |
||
| 47 | */ |
||
| 48 | public function testPregSplitArray(array $expected, array $list, string $pattern): void |
||
| 58 | |||
| 59 | /** |
||
| 60 | * |
||
| 61 | * |
||
| 62 | * @dataProvider |
||
| 63 | * |
||
| 64 | * @return void |
||
| 65 | */ |
||
| 66 | public function testPregSplitFlatArray(): void |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Get the array test contents |
||
| 80 | * |
||
| 81 | * @return array |
||
| 82 | */ |
||
| 83 | public function pregSplitArrayProvider(): array |
||
| 103 | } |
||
| 104 |