File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1616use CodeIgniter \Test \CIUnitTestCase ;
1717use org \bovigo \vfs \vfsStream ;
1818use org \bovigo \vfs \vfsStreamDirectory ;
19+ use TypeError ;
1920
2021/**
2122 * @backupGlobals enabled
@@ -112,12 +113,9 @@ public function testLoadsBase64(): void
112113
113114 public function testLoadsNoneStringFiles (): void
114115 {
115- $ dotenv = new DotEnv ($ this ->fixturesFolder , 2 );
116- $ dotenv ->load ();
117- $ this ->assertSame ('bar ' , getenv ('FOO ' ));
118- $ this ->assertSame ('baz ' , getenv ('BAR ' ));
119- $ this ->assertSame ('with spaces ' , getenv ('SPACED ' ));
120- $ this ->assertSame ('' , getenv ('NULL ' ));
116+ $ this ->expectException (TypeError::class);
117+
118+ new DotEnv ($ this ->fixturesFolder , 2 );
121119 }
122120
123121 public function testCommentedLoadsVars (): void
You can’t perform that action at this time.
0 commit comments