Fixed tests

This commit is contained in:
Dmitry Khomutov 2017-01-04 15:16:20 +07:00
commit a10f760122
6 changed files with 31 additions and 12 deletions

View file

@ -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()