| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 8 | class SluggableHelperTest extends SapphireTest |
||
| 9 | { |
||
| 10 | |||
| 11 | public function testLowerCase(): void |
||
| 12 | { |
||
| 13 | $this->assertEquals('this-is-lower-case', $this->getSlug('this is lower case')); |
||
| 14 | } |
||
| 15 | |||
| 16 | |||
| 17 | public function testUpperCase(): void |
||
| 18 | { |
||
| 19 | $this->assertEquals('this-is-upper-case', $this->getSlug('THIS IS UPPER CASE')); |
||
| 20 | } |
||
| 21 | |||
| 22 | |||
| 23 | public function testMixedCase(): void |
||
| 26 | } |
||
| 27 | |||
| 28 | |||
| 29 | public function testEmptyString(): void |
||
| 30 | { |
||
| 31 | $this->assertEquals('', $this->getSlug('')); |
||
| 32 | } |
||
| 33 | |||
| 34 | |||
| 35 | private function getSlug(string $title): string |
||
| 40 | } |
||
| 41 | } |
||
| 42 |