Skip to content

Commit

Permalink
fix template file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Mar 29, 2016
1 parent 8ea2168 commit 30747fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/PSX/Http/Tests/Handler/HandlerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function testPostRequest()

public function testPostRequestStream()
{
$file = 'tests/PSX/Template/files/foo.htm';
$file = __DIR__ . '/../../../Framework/Tests/Template/files/foo.htm';
$request = new PostRequest(new Url(self::URL . '/post'), array('Content-Type' => 'text/plain', 'Content-Length' => filesize($file)), new TempStream(fopen($file, 'r+')));
$response = $this->client->request($request);

Expand All @@ -139,7 +139,7 @@ public function testPostRequestStream()

public function testPostRequestStreamChunkedTransfer()
{
$file = 'tests/PSX/Template/files/foo.htm';
$file = __DIR__ . '/../../../Framework/Tests/Template/files/foo.htm';
$request = new PostRequest(new Url(self::URL . '/post'), array('Content-Type' => 'text/plain', 'Transfer-Encoding' => 'chunked'), new TempStream(fopen($file, 'r+')));
$response = $this->client->request($request);

Expand Down Expand Up @@ -168,7 +168,7 @@ public function testPutRequest()

public function testPutRequestStream()
{
$file = 'tests/PSX/Template/files/foo.htm';
$file = __DIR__ . '/../../../Framework/Tests/Template/files/foo.htm';
$request = new PutRequest(new Url(self::URL . '/put'), array('Content-Type' => 'text/plain', 'Content-Length' => filesize($file)), new TempStream(fopen($file, 'r+')));
$response = $this->client->request($request);

Expand Down Expand Up @@ -197,7 +197,7 @@ public function testDeleteRequest()

public function testDeleteRequestStream()
{
$file = 'tests/PSX/Template/files/foo.htm';
$file = __DIR__ . '/../../../Framework/Tests/Template/files/foo.htm';
$request = new DeleteRequest(new Url(self::URL . '/delete'), array('Content-Type' => 'text/plain', 'Content-Length' => filesize($file)), new TempStream(fopen($file, 'r+')));
$response = $this->client->request($request);

Expand Down

0 comments on commit 30747fc

Please sign in to comment.