endtoend-test-psl/tests/Psl/Env/CurrentExecTest.php

22 lines
402 B
PHP
Raw Normal View History

2020-08-18 05:51:44 +02:00
<?php
declare(strict_types=1);
namespace Psl\Tests\Env;
use PHPUnit\Framework\TestCase;
use Psl\Env;
use function realpath;
final class CurrentExecTest extends TestCase
2020-08-18 05:51:44 +02:00
{
public function testCurrentExe(): void
{
$phpunit = __DIR__ . '/../../../vendor/phpunit/phpunit/phpunit';
$phpunit = realpath($phpunit);
self::assertSame($phpunit, Env\current_exec());
2020-08-18 05:51:44 +02:00
}
}