Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 509ed87

Browse files
test: remove useless DotEnvTest test (#9673)
1 parent 09b69af commit 509ed87

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
@@ -115,13 +114,6 @@ public function testLoadsBase64(): void
115114
$this->assertSame('OpenSSL', getenv('encryption.driver'));
116115
}
117116

118-
public function testLoadsNoneStringFiles(): void
119-
{
120-
$this->expectException(TypeError::class);
121-
122-
new DotEnv($this->fixturesFolder, 2);
123-
}
124-
125117
public function testCommentedLoadsVars(): void
126118
{
127119
$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 2837 errors
1+
# total 2836 errors
22
includes:
33
- argument.type.neon
44
- assign.propertyType.neon

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /