summaryrefslogtreecommitdiffstats
path: root/test/PJsonCurlTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/PJsonCurlTest.php')
-rw-r--r--test/PJsonCurlTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/PJsonCurlTest.php b/test/PJsonCurlTest.php
index 80f765d..5699227 100644
--- a/test/PJsonCurlTest.php
+++ b/test/PJsonCurlTest.php
@@ -1,6 +1,5 @@
<?php
-
require_once (dirname(__FILE__) . '/../src/PurpleCode/PCurl/PCurlResponse.php');
require_once (dirname(__FILE__) . '/../src/PurpleCode/PCurl/Json/PJsonCurlResponse.php');
require_once (dirname(__FILE__) . '/../src/PurpleCode/PCurl/PCurl.php');
@@ -11,12 +10,12 @@ use PurpleCode\PCurl\Json\PJsonCurl;
class PJsonCurlTest extends PHPUnit_Framework_TestCase {
private function getCACertBundlePath() {
- return __DIR__.'\ca-cert.crt';
+ return __DIR__ . '\ca-cert.crt';
}
public function testShouldGetJsonFileAndParse() {
// given
- $cut = new PJsonCurl('file:///'.__DIR__.'/test.json');
+ $cut = new PJsonCurl('file:///' . __DIR__ . '/test.json');
// when
$response = $cut->get('');
@@ -28,12 +27,13 @@ class PJsonCurlTest extends PHPUnit_Framework_TestCase {
public function testShouldFailParseWrongFile() {
// given
- $cut = new PJsonCurl('file:///'.__DIR__.'/testinvalid.json');
+ $cut = new PJsonCurl('file:///' . __DIR__ . '/testinvalid.json');
//then
$this->setExpectedException('PurpleCode\PCurl\PCurlException');
-
+
// when
$response = $cut->get('');
}
-} \ No newline at end of file
+
+}