diff options
Diffstat (limited to 'test/PCurlTest.php')
-rw-r--r-- | test/PCurlTest.php | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/test/PCurlTest.php b/test/PCurlTest.php index 49f3410..ec301e4 100644 --- a/test/PCurlTest.php +++ b/test/PCurlTest.php @@ -2,7 +2,7 @@ require_once (dirname(__FILE__) . '/../src/PCurl.php');
-use PurpleCode\PCurl;
+use PurpleCode\PCurl\PCurl;
class PCurlTest extends PHPUnit_Framework_TestCase {
@@ -21,18 +21,6 @@ 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');
@@ -50,7 +38,7 @@ class PCurlTest extends PHPUnit_Framework_TestCase { $cut = new PCurl('https://www.google.com');
// then
- $this->setExpectedException('PurpleCode\PCurlException');
+ $this->setExpectedException('PurpleCode\PCurl\PCurlException');
// when
$response = $cut->get('/');
|