Skip to content

Commit

Permalink
csf part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
CommandString committed Jul 1, 2023
1 parent 5bb1193 commit e6bedbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/TestEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function testCreatingWithBrokenName(): void
public function testCreatingFromFile(): void
{
Env::destroy();
Env::createFromFile(__DIR__.'/.test.env');
Env::createFromFile(__DIR__ . '/.test.env');

$this->assertSame('root', Env::get()->USERNAME);
$this->assertSame('123456', Env::get()->PASSWORD);
Expand All @@ -68,13 +68,13 @@ public function testCreatingFromNonExistingFile(): void
{
Env::destroy();
$this->expectException(Exception::class);
Env::createFromFile(__DIR__.'/.non-existing.env');
Env::createFromFile(__DIR__ . '/.non-existing.env');
}

public function testDebugInfo(): void
{
Env::destroy();
$env = Env::createFromFile(__DIR__.'/.test.env');
$env = Env::createFromFile(__DIR__ . '/.test.env');

$props = [
'USERNAME' => 'root',
Expand All @@ -89,7 +89,7 @@ public function testDebugInfo(): void
public function testArrayAccess(): void
{
Env::destroy();
$env = Env::createFromFile(__DIR__.'/.test.env');
$env = Env::createFromFile(__DIR__ . '/.test.env');
$env['TEST'] = 10;

$this->assertSame('root', $env['USERNAME']);
Expand Down

0 comments on commit e6bedbd

Please sign in to comment.