summaryrefslogtreecommitdiffstats
path: root/test/PCurlTest.php
diff options
context:
space:
mode:
authorpurplecode <niespammnie@gmail.com>2013-12-08 12:10:40 +0100
committerpurplecode <niespammnie@gmail.com>2013-12-08 12:10:40 +0100
commit10b3b2afe2dbe6517769f1da3c1995173eba0135 (patch)
tree99f8cbb551914f1ba626bb86682271de1f31eaf3 /test/PCurlTest.php
parent1496a14b7b778d8feb2ea5e8d38f61aaa864cfd1 (diff)
downloadphp.curl-10b3b2afe2dbe6517769f1da3c1995173eba0135.zip
php.curl-10b3b2afe2dbe6517769f1da3c1995173eba0135.tar.gz
php.curl-10b3b2afe2dbe6517769f1da3c1995173eba0135.tar.bz2
license info
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');