mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-11 16:49:40 +01:00
26 lines
410 B
PHP
26 lines
410 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Psl\Tests\Env;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Psl\Env;
|
|
|
|
final class GetVarTest extends TestCase
|
|
{
|
|
/**
|
|
* @backupGlobals
|
|
*/
|
|
public function testGetVar(): void
|
|
{
|
|
static::assertNull(Env\get_var('FOO'));
|
|
|
|
Env\set_var('FOO', 'BAR');
|
|
|
|
static::assertSame('BAR', Env\get_var('FOO'));
|
|
|
|
Env\remove_var('FOO');
|
|
}
|
|
}
|