@@ -134,12 +134,12 @@ protected function checkRestart($xdebug)
134134 self ::assertTrue ($ xdebug ->restarted );
135135
136136 // Env ALLOW_XDEBUG must be unset
137- self ::assertSame ( false , getenv (CoreMock::ALLOW_XDEBUG ));
138- self ::assertSame ( false , isset ( $ _SERVER [ CoreMock::ALLOW_XDEBUG ]) );
137+ self ::assertFalse ( getenv (CoreMock::ALLOW_XDEBUG ));
138+ self ::assertArrayNotHasKey ( CoreMock::ALLOW_XDEBUG , $ _SERVER );
139139
140140 // Env ORIGINAL_INIS must be set and be a string
141- self ::assertTrue ( is_string ( getenv (CoreMock::ORIGINAL_INIS ) ));
142- self ::assertSame ( true , isset ( $ _SERVER [ CoreMock::ORIGINAL_INIS ]) );
141+ self ::assertIsString ( getenv (CoreMock::ORIGINAL_INIS ));
142+ self ::assertArrayHasKey ( CoreMock::ORIGINAL_INIS , $ _SERVER );
143143
144144 // Skipped version must only be reported if it was unloaded in the restart
145145 if (!$ xdebug ->parentLoaded ) {
@@ -155,8 +155,8 @@ protected function checkRestart($xdebug)
155155 self ::assertSame ($ version , $ xdebug ::getSkippedVersion ());
156156
157157 // Env RESTART_SETTINGS must be set and be a string
158- self ::assertTrue ( is_string ( getenv (CoreMock::RESTART_SETTINGS ) ));
159- self ::assertSame ( true , isset ( $ _SERVER [ CoreMock::RESTART_SETTINGS ]) );
158+ self ::assertIsString ( getenv (CoreMock::RESTART_SETTINGS ));
159+ self ::assertArrayHasKey ( CoreMock::RESTART_SETTINGS , $ _SERVER );
160160
161161 // Restart settings must be an array
162162 self ::assertTrue (is_array ($ xdebug ::getRestartSettings ()));
@@ -175,15 +175,15 @@ protected function checkNoRestart($xdebug)
175175 self ::assertFalse ($ xdebug ->restarted );
176176
177177 // Env ORIGINAL_INIS must not be set
178- self ::assertSame ( false , getenv (CoreMock::ORIGINAL_INIS ));
179- self ::assertSame ( false , isset ( $ _SERVER [ CoreMock::ORIGINAL_INIS ]) );
178+ self ::assertFalse ( getenv (CoreMock::ORIGINAL_INIS ));
179+ self ::assertArrayNotHasKey ( CoreMock::ORIGINAL_INIS , $ _SERVER );
180180
181181 // Skipped version must be an empty string
182182 self ::assertSame ('' , $ xdebug ::getSkippedVersion ());
183183
184184 // Env RESTART_SETTINGS must not be set
185- self ::assertSame ( false , getenv (CoreMock::RESTART_SETTINGS ));
186- self ::assertSame ( false , isset ( $ _SERVER [ CoreMock::RESTART_SETTINGS ]) );
185+ self ::assertFalse ( getenv (CoreMock::RESTART_SETTINGS ));
186+ self ::assertArrayNotHasKey ( CoreMock::RESTART_SETTINGS , $ _SERVER );
187187
188188 // Restart settings must be null
189189 self ::assertNull ($ xdebug ::getRestartSettings ());
0 commit comments