diff options
-rw-r--r-- | src/PCurl.php | 8 | ||||
-rw-r--r-- | src/PCurlException.php | 8 | ||||
-rw-r--r-- | test/PCurlTest.php | 12 |
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');
|