mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-12 17:17:25 +01:00
26 lines
400 B
PHP
26 lines
400 B
PHP
|
<?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');
|
||
|
}
|
||
|
}
|