@@ -271,46 +271,25 @@ public function testCanInspectResultOfPhpBrowserRequest()
271271 $ this ->module ->seeResponseIsJson ();
272272 }
273273
274- /**
275- * @Issue https://github.com/Codeception/Codeception/issues/1650
276- */
277- public function testHostHeader ()
278- {
279- if (getenv ('dependencies ' ) === 'lowest ' ) {
280- $ this ->markTestSkipped ('This test can \'t pass with the lowest versions of dependencies ' );
281- }
282-
283- $ this ->module ->sendGET ('/rest/http-host/ ' );
284- $ this ->module ->seeResponseContains ('host: "localhost:8010" ' );
285-
286- $ this ->module ->haveHttpHeader ('Host ' , 'www.example.com ' );
287- $ this ->module ->sendGET ('/rest/http-host/ ' );
288- $ this ->module ->seeResponseContains ('host: "www.example.com" ' );
289- }
290-
291274 /**
292275 * @Issue 4203 https://github.com/Codeception/Codeception/issues/4203
293- * @depends testHostHeader
294276 */
295277 public function testSessionHeaderBackup ()
296278 {
297- if (getenv ('dependencies ' ) === 'lowest ' ) {
298- $ this ->markTestSkipped ('This test can \'t pass with the lowest versions of dependencies ' );
299- }
300279
301- $ this ->module ->haveHttpHeader ('Host ' , 'www.example.com ' );
302- $ this ->module ->sendGET ('/rest/http-host / ' );
303- $ this ->module ->seeResponseContains ('host : "www.example.com " ' );
280+ $ this ->module ->haveHttpHeader ('foo ' , 'bar ' );
281+ $ this ->module ->sendGET ('/rest/foo / ' );
282+ $ this ->module ->seeResponseContains ('foo : "bar " ' );
304283
305284 $ session = $ this ->phpBrowser ->_backupSession ();
306285
307- $ this ->module ->haveHttpHeader ('Host ' , 'www.localhost.com ' );
308- $ this ->module ->sendGET ('/rest/http-host / ' );
309- $ this ->module ->seeResponseContains ('host : "www.localhost.com " ' );
286+ $ this ->module ->haveHttpHeader ('foo ' , 'baz ' );
287+ $ this ->module ->sendGET ('/rest/foo / ' );
288+ $ this ->module ->seeResponseContains ('foo : "baz " ' );
310289
311290 $ this ->phpBrowser ->_loadSession ($ session );
312- $ this ->module ->sendGET ('/rest/http-host / ' );
313- $ this ->module ->seeResponseContains ('host : "www.example.com " ' );
291+ $ this ->module ->sendGET ('/rest/foo / ' );
292+ $ this ->module ->seeResponseContains ('foo : "bar " ' );
314293 }
315294
316295 protected function shouldFail ()
@@ -320,7 +299,7 @@ protected function shouldFail()
320299
321300 public function testGrabFromCurrentUrl ()
322301 {
323- $ this ->module ->sendGET ('/rest/http-host / ' );
324- $ this ->assertEquals ('/rest/http-host / ' , $ this ->phpBrowser ->grabFromCurrentUrl ());
302+ $ this ->module ->sendGET ('/rest/foo / ' );
303+ $ this ->assertEquals ('/rest/foo / ' , $ this ->phpBrowser ->grabFromCurrentUrl ());
325304 }
326305}
0 commit comments