@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | { |
27 | 27 | $this->config = new Config(); |
28 | 28 | foreach ($this->env as $envName => $envValue) { |
29 | - $this->env[$envName] = $_ENV[$envName]; |
|
30 | - $_ENV[$envName] = null; |
|
29 | + $this->env[ $envName ] = $_ENV[ $envName ]; |
|
30 | + $_ENV[ $envName ] = null; |
|
31 | 31 | putenv($envName.'=0'); |
32 | 32 | } |
33 | 33 | parent::setUp(); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | protected function tearDown(): void |
37 | 37 | { |
38 | 38 | foreach ($this->env as $envName => $envValue) { |
39 | - $_ENV[$envName] = $envValue; |
|
39 | + $_ENV[ $envName ] = $envValue; |
|
40 | 40 | } |
41 | 41 | parent::tearDown(); |
42 | 42 | } |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | public function testGetClientSecret() |
45 | 45 | { |
46 | 46 | $envValue = 'UnitSecret'; |
47 | - $_ENV['CLIENT_SECRET'] = $envValue; |
|
48 | - $this->assertSame($envValue,$this->config->getClientSecret()); |
|
47 | + $_ENV[ 'CLIENT_SECRET' ] = $envValue; |
|
48 | + $this->assertSame($envValue, $this->config->getClientSecret()); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | public function testGetClientSecretException() |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | public function testGetClientId() |
58 | 58 | { |
59 | 59 | $envValue = 'UnitId'; |
60 | - $_ENV['CLIENT_ID'] = $envValue; |
|
61 | - $this->assertSame($envValue,$this->config->getClientId()); |
|
60 | + $_ENV[ 'CLIENT_ID' ] = $envValue; |
|
61 | + $this->assertSame($envValue, $this->config->getClientId()); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | public function testGetClientIdException() |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | public function testGetRedirectUri() |
71 | 71 | { |
72 | 72 | $envValue = 'UnitRedirectUri'; |
73 | - $_ENV['REDIRECT_URI'] = $envValue; |
|
74 | - $this->assertSame($envValue,$this->config->getRedirectUri()); |
|
73 | + $_ENV[ 'REDIRECT_URI' ] = $envValue; |
|
74 | + $this->assertSame($envValue, $this->config->getRedirectUri()); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | public function testGetRedirectUriException() |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | public function testGetSpotifyUsername() |
84 | 84 | { |
85 | 85 | $envValue = 'UnitSpotifyUserName'; |
86 | - $_ENV['SPOTIFY_USERNAME'] = $envValue; |
|
87 | - $this->assertSame($envValue,$this->config->getSpotifyUsername()); |
|
86 | + $_ENV[ 'SPOTIFY_USERNAME' ] = $envValue; |
|
87 | + $this->assertSame($envValue, $this->config->getSpotifyUsername()); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | public function testGetSpotifyUsernameException() |