summaryrefslogtreecommitdiffstats
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
parent1496a14b7b778d8feb2ea5e8d38f61aaa864cfd1 (diff)
downloadphp.curl-10b3b2afe2dbe6517769f1da3c1995173eba0135.zip
php.curl-10b3b2afe2dbe6517769f1da3c1995173eba0135.tar.gz
php.curl-10b3b2afe2dbe6517769f1da3c1995173eba0135.tar.bz2
license info
-rw-r--r--src/PCurl.php8
-rw-r--r--src/PCurlException.php8
-rw-r--r--test/PCurlTest.php12
3 files changed, 28 insertions, 0 deletions
diff --git a/src/PCurl.php b/src/PCurl.php
index dd70863..edf3698 100644
--- a/src/PCurl.php
+++ b/src/PCurl.php
@@ -1,4 +1,12 @@
<?php
+/**
+ * PCurl is a REST client libary for PHP.
+ *
+ * See http://github.com/purplecode/php.curl for details.
+ *
+ * This code is licensed for use, modification, and distribution
+ * under the terms of the MIT License (see http://en.wikipedia.org/wiki/MIT_License)
+ */
namespace PurpleCode;
diff --git a/src/PCurlException.php b/src/PCurlException.php
index 3c4580d..ec0d646 100644
--- a/src/PCurlException.php
+++ b/src/PCurlException.php
@@ -1,4 +1,12 @@
<?php
+/**
+ * PCurl is a REST client libary for PHP.
+ *
+ * See http://github.com/purplecode/php.curl for details.
+ *
+ * This code is licensed for use, modification, and distribution
+ * under the terms of the MIT License (see http://en.wikipedia.org/wiki/MIT_License)
+ */
namespace PurpleCode;
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');