mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-02 17:56:09 +01:00
24 lines
561 B
PHP
24 lines
561 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Psl\Tests\Env;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Psl\Env;
|
|
use Psl\Filesystem;
|
|
|
|
final class CurrentExecTest extends TestCase
|
|
{
|
|
public function testCurrentExe(): void
|
|
{
|
|
$phpunit = __DIR__ . '/../../../vendor/bin/phpunit';
|
|
$phpunit = Filesystem\canonicalize($phpunit);
|
|
if (PHP_OS_FAMILY !== 'Windows' && Filesystem\is_symbolic_link($phpunit)) {
|
|
$phpunit = Filesystem\read_symbolic_link($phpunit);
|
|
}
|
|
|
|
static::assertSame($phpunit, Env\current_exec());
|
|
}
|
|
}
|