Fixed tests
This commit is contained in:
parent
143e583be8
commit
a10f760122
6 changed files with 31 additions and 12 deletions
|
|
@ -11,7 +11,7 @@ class HttpClientTest extends \PHPUnit_Framework_TestCase
|
|||
$http = new HttpClient();
|
||||
$html = $http->request('GET', 'https://www.cloudflare.com/');
|
||||
|
||||
$this->assertContains('CloudFlare', $html['body']);
|
||||
$this->assertContains('Cloudflare', $html['body']);
|
||||
}
|
||||
|
||||
public function testBaseUrl()
|
||||
|
|
@ -19,7 +19,7 @@ class HttpClientTest extends \PHPUnit_Framework_TestCase
|
|||
$http = new HttpClient('https://www.cloudflare.com');
|
||||
$html = $http->request('GET', '/');
|
||||
|
||||
$this->assertContains('CloudFlare', $html['body']);
|
||||
$this->assertContains('Cloudflare', $html['body']);
|
||||
}
|
||||
|
||||
public function testGet()
|
||||
|
|
@ -27,7 +27,7 @@ class HttpClientTest extends \PHPUnit_Framework_TestCase
|
|||
$http = new HttpClient('https://www.cloudflare.com');
|
||||
$html = $http->get('overview', ['x' => 1]);
|
||||
|
||||
$this->assertContains('CloudFlare', $html['body']);
|
||||
$this->assertContains('Cloudflare', $html['body']);
|
||||
}
|
||||
|
||||
public function testGetJson()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue