@@ -271,46 +271,25 @@ public function testCanInspectResultOfPhpBrowserRequest()
271
271
$ this ->module ->seeResponseIsJson ();
272
272
}
273
273
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
-
291
274
/**
292
275
* @Issue 4203 https://github.com/Codeception/Codeception/issues/4203
293
- * @depends testHostHeader
294
276
*/
295
277
public function testSessionHeaderBackup ()
296
278
{
297
- if (getenv ('dependencies ' ) === 'lowest ' ) {
298
- $ this ->markTestSkipped ('This test can \'t pass with the lowest versions of dependencies ' );
299
- }
300
279
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 " ' );
304
283
305
284
$ session = $ this ->phpBrowser ->_backupSession ();
306
285
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 " ' );
310
289
311
290
$ 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 " ' );
314
293
}
315
294
316
295
protected function shouldFail ()
@@ -320,7 +299,7 @@ protected function shouldFail()
320
299
321
300
public function testGrabFromCurrentUrl ()
322
301
{
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 ());
325
304
}
326
305
}
0 commit comments