Skip to content

Commit 53e6c97

Browse files
committed
Slightly changed Fetcher tests.
1 parent 9d1f1fc commit 53e6c97

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Cmfcmf/OpenWeatherMap/Fetcher/CurlFetcherTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

Cmfcmf/OpenWeatherMap/Fetcher/FileGetContentsFetcherTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)