Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class SeparatorsTest extends CommonTestClass |
||
11 | { |
||
12 | /** |
||
13 | * @param string $what |
||
14 | * @param string $expected |
||
15 | * @param string $separator |
||
16 | * @dataProvider startProvider |
||
17 | */ |
||
18 | public function testStartRemoval(string $what, string $expected, string $separator): void |
||
19 | { |
||
20 | $this->assertEquals($expected, SeparatorSigns::removeFromStart($what, $separator)); |
||
21 | } |
||
22 | |||
23 | public function startProvider(): array |
||
29 | ]; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param string $what |
||
34 | * @param string $expected |
||
35 | * @param string $separator |
||
36 | * @dataProvider endProvider |
||
37 | */ |
||
38 | public function testEndRemoval(string $what, string $expected, string $separator): void |
||
41 | } |
||
42 | |||
43 | public function endProvider(): array |
||
49 | ]; |
||
50 | } |
||
52 |