summaryrefslogtreecommitdiffstats
path: root/test/PCurlTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCurlTest.php')
-rw-r--r--test/PCurlTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/PCurlTest.php b/test/PCurlTest.php
index b0531a0..49f3410 100644
--- a/test/PCurlTest.php
+++ b/test/PCurlTest.php
@@ -21,6 +21,18 @@ class PCurlTest extends PHPUnit_Framework_TestCase {
$this->assertSelectRegExp('title', '/Google/', 1, $response);
}
+
+ public function testShouldGetGooglePageViaHttp() {
+ // given
+ $cut = new PCurl('http://www.google.pl');
+
+ // when
+ $response = $cut->get('/');
+
+ // then
+ $this->assertSelectRegExp('title', '/Google/', 1, $response);
+ }
+
public function testShouldGetGooglePageAndCheckHttpsCertificate() {
// given
$cut = new PCurl('https://www.google.pl');