Skip to content

Commit

Permalink
test: update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 3, 2023
1 parent 2477eed commit c590741
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/system/Config/DotEnvTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use CodeIgniter\Test\CIUnitTestCase;
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamDirectory;
use TypeError;

/**
* @backupGlobals enabled
Expand Down Expand Up @@ -112,12 +113,9 @@ public function testLoadsBase64(): void

public function testLoadsNoneStringFiles(): void
{
$dotenv = new DotEnv($this->fixturesFolder, 2);
$dotenv->load();
$this->assertSame('bar', getenv('FOO'));
$this->assertSame('baz', getenv('BAR'));
$this->assertSame('with spaces', getenv('SPACED'));
$this->assertSame('', getenv('NULL'));
$this->expectException(TypeError::class);

new DotEnv($this->fixturesFolder, 2);
}

public function testCommentedLoadsVars(): void
Expand Down

0 comments on commit c590741

Please sign in to comment.