| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class StringUtilsTraitTest extends TestCase |
||
| 11 | { |
||
| 12 | use StringUtilsTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @test |
||
| 16 | * @dataProvider provideLengths |
||
| 17 | */ |
||
| 18 | public function generateRandomStringGeneratesStringOfProvidedLength(int $length) |
||
| 19 | { |
||
| 20 | $this->assertEquals($length, strlen($this->generateRandomString($length))); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function provideLengths(): array |
||
| 24 | { |
||
| 25 | return [ |
||
| 26 | [1], |
||
| 27 | [10], |
||
| 28 | [15], |
||
| 29 | ]; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @test |
||
| 34 | */ |
||
| 35 | public function generatesUuidV4() |
||
| 44 | } |
||
| 45 | } |
||
| 46 |