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 16
16
use CodeIgniter \Test \CIUnitTestCase ;
17
17
use org \bovigo \vfs \vfsStream ;
18
18
use org \bovigo \vfs \vfsStreamDirectory ;
19
+ use TypeError ;
19
20
20
21
/**
21
22
* @backupGlobals enabled
@@ -112,12 +113,9 @@ public function testLoadsBase64(): void
112
113
113
114
public function testLoadsNoneStringFiles (): void
114
115
{
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 );
121
119
}
122
120
123
121
public function testCommentedLoadsVars (): void
You can’t perform that action at this time.
0 commit comments