Skip to content

Commit 45d9f69

Browse files
committed
test: remove useless DotEnvTest test
1 parent bd4c41d commit 45d9f69

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

tests/system/Config/DotEnvTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
use PHPUnit\Framework\Attributes\PreserveGlobalState;
2323
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
2424
use PHPUnit\Framework\Attributes\WithoutErrorHandler;
25-
use TypeError;
2625

2726
/**
2827
* @internal
@@ -109,13 +108,6 @@ public function testLoadsBase64(): void
109108
$this->assertSame('OpenSSL', getenv('encryption.driver'));
110109
}
111110

112-
public function testLoadsNoneStringFiles(): void
113-
{
114-
$this->expectException(TypeError::class);
115-
116-
new DotEnv($this->fixturesFolder, 2);
117-
}
118-
119111
public function testCommentedLoadsVars(): void
120112
{
121113
$dotenv = new DotEnv($this->fixturesFolder, 'commented.env');

utils/phpstan-baseline/argument.type.neon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 88 errors
1+
# total 87 errors
22

33
parameters:
44
ignoreErrors:
@@ -52,11 +52,6 @@ parameters:
5252
count: 4
5353
path: ../../tests/system/Commands/RoutesTest.php
5454

55-
-
56-
message: '#^Parameter \#2 \$file of class CodeIgniter\\Config\\DotEnv constructor expects string, int given\.$#'
57-
count: 1
58-
path: ../../tests/system/Config/DotEnvTest.php
59-
6055
-
6156
message: '#^Parameter \#1 \$expected of method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) expects class\-string\<Config\\TestRegistrar\>, string given\.$#'
6257
count: 1

utils/phpstan-baseline/loader.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 2844 errors
1+
# total 2843 errors
22
includes:
33
- argument.type.neon
44
- assign.propertyType.neon

0 commit comments

Comments
 (0)