for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace OpenEngine\Mika\Core\Helpers\Tests;
use OpenEngine\Mika\Core\Helpers\Path;
use PHPUnit\Framework\TestCase;
class PathTest extends TestCase
{
public function testAbsolutePath(): void
Path::setRoot('/tmp');
self::assertStringEndsWith('/tmp/akmal', Path::get('akmal'));
}
public function testRoot(): void
Path::setRoot(__DIR__);
self::assertStringEndsWith(__DIR__, Path::getRoot());
public function testNames(): void
Path::addName('src', 'src');
self::assertStringEndsWith('/tmp/src', Path::getName('src'));