File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Cmfcmf/OpenWeatherMap/Fetcher Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function testInvalidUrl()
2525 {
2626 $ fetcher = new CurlFetcher ();
2727
28- $ content = $ fetcher ->fetch ('http://notexisting.example.com/ ' );
28+ $ content = $ fetcher ->fetch ('http://notexisting.example.com ' );
2929
3030 $ this ->assertSame (false , $ content );
3131 }
@@ -34,7 +34,7 @@ public function testEmptyUrl()
3434 {
3535 $ fetcher = new CurlFetcher ();
3636
37- $ content = $ fetcher ->fetch ('http://notexisting.example.com/ ' );
37+ $ content = $ fetcher ->fetch ('' );
3838
3939 $ this ->assertSame (false , $ content );
4040 }
@@ -43,8 +43,8 @@ public function testValidUrl()
4343 {
4444 $ fetcher = new CurlFetcher ();
4545
46- $ content = $ fetcher ->fetch ('http://www.example.com ' );
46+ $ content = $ fetcher ->fetch ('http://httpbin.org/html ' );
4747
48- $ this ->assertContains ('Example Domain ' , $ content );
48+ $ this ->assertContains ('Herman Melville ' , $ content );
4949 }
5050}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function testInvalidUrl()
3232 {
3333 $ fetcher = new FileGetContentsFetcher ();
3434
35- $ fetcher ->fetch ('http://notexisting.example.com/ ' );
35+ $ fetcher ->fetch ('http://notexisting.example.com ' );
3636 }
3737
3838 /**
@@ -49,8 +49,8 @@ public function testValidUrl()
4949 {
5050 $ fetcher = new FileGetContentsFetcher ();
5151
52- $ content = $ fetcher ->fetch ('http://www.example.com ' );
52+ $ content = $ fetcher ->fetch ('http://httpbin.org/html ' );
5353
54- $ this ->assertContains ('Example Domain ' , $ content );
54+ $ this ->assertContains ('Herman Melville ' , $ content );
5555 }
5656}
You can’t perform that action at this time.
0 commit comments