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

26 lines
400 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;
class GetVarTest extends TestCase
{
/**
* @backupGlobals
*/
public function testGetVar(): void
{
self::assertNull(Env\get_var('FOO'));
Env\set_var('FOO', 'BAR');
self::assertSame('BAR', Env\get_var('FOO'));
Env\remove_var('FOO');
}
}