| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class WithSuffixAbsolutePathStrategyTest extends TestCase |
||
| 11 | { |
||
| 12 | public function test_file_without_extension_neither_suffix_then_empty_string(): void |
||
| 18 | } |
||
| 19 | |||
| 20 | public function test_file_without_extension_but_suffix(): void |
||
| 21 | { |
||
| 22 | $strategy = new WithSuffixAbsolutePathStrategy('/app/root/', 'suffix'); |
||
| 23 | $relativePath = '/file-name'; |
||
| 24 | |||
| 25 | self::assertSame( |
||
| 26 | '/app/root/file-name-suffix', |
||
| 27 | $strategy->generateAbsolutePath($relativePath) |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function test_file_with_extension_but_no_suffix_then_empty_string(): void |
||
| 37 | } |
||
| 38 | |||
| 39 | public function test_file_with_extension_and_suffix(): void |
||
| 50 |