@@ -115,8 +115,9 @@ public function testFailsOnMissingEnvironmentVariables(): void
115
115
116
116
public function testDebugModeOffEnvironmentVariables (): void
117
117
{
118
- // commented to signify a missing env variable.
119
- // Env\set_var('ACTIONS_RUNNER_DEBUG', '');
118
+ // missing env variable.
119
+ Env \remove_var ('ACTIONS_RUNNER_DEBUG ' );
120
+
120
121
Env \set_var ('GITHUB_TOKEN ' , 'token ' );
121
122
Env \set_var ('SIGNING_SECRET_KEY ' , 'aaa ' );
122
123
Env \set_var ('GITHUB_ORGANISATION ' , 'bbb ' );
@@ -128,7 +129,7 @@ public function testDebugModeOffEnvironmentVariables(): void
128
129
$ importKey = $ this ->createMock (ImportGpgKeyFromString::class);
129
130
$ importKey ->method ('__invoke ' )->willReturn (SecretKeyId::fromBase16String ('aabbccdd ' ));
130
131
$ variables = EnvironmentVariables::fromEnvironment ($ importKey );
131
- self ::assertEquals ('INFO ' , $ variables ->logLevel ());
132
+ self ::assertSame ('INFO ' , $ variables ->logLevel ());
132
133
}
133
134
134
135
public function testDebugModeOnEnvironmentVariables (): void
@@ -146,6 +147,6 @@ public function testDebugModeOnEnvironmentVariables(): void
146
147
$ importKey ->method ('__invoke ' )->willReturn (SecretKeyId::fromBase16String ('aabbccdd ' ));
147
148
$ variables = EnvironmentVariables::fromEnvironment ($ importKey );
148
149
149
- self ::assertEquals ('DEBUG ' , $ variables ->logLevel ());
150
+ self ::assertSame ('DEBUG ' , $ variables ->logLevel ());
150
151
}
151
152
}
0 commit comments