for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace GacelaTest\Unit\Framework\Config\PathNormalizer;
use Gacela\Framework\Config\PathNormalizer\WithoutSuffixAbsolutePathStrategy;
use PHPUnit\Framework\TestCase;
final class WithoutSuffixAbsolutePathStrategyTest extends TestCase
{
public function test_file_without_extension(): void
$strategy = new WithoutSuffixAbsolutePathStrategy('/app/root/');
$relativePath = '/file-name';
self::assertSame(
'/app/root/file-name',
$strategy->generateAbsolutePath($relativePath)
);
}
public function test_file_with_extension(): void
$relativePath = '/file-name.ext';
'/app/root/file-name.ext',