Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Fix helper methods not available on data providers
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Jun 11, 2015
1 parent 5820bd7 commit 6bb1641
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ class RequestTest extends TestCase

public function setUp()
{
$this->request = new Request();
$this->request = $this->createDefaultRequest();
}

protected function createDefaultRequest()
{
return $this->request;
return new Request();
}

public function testConstructorRaisesExceptionForInvalidStream()
Expand Down
4 changes: 2 additions & 2 deletions test/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ class ResponseTest extends TestCase

public function setUp()
{
$this->response = new Response();
$this->response = $this->createDefaultResponse();
}

protected function createDefaultResponse()
{
return $this->response;
return new Response();
}

public function testStatusCodeIs200ByDefault()
Expand Down
4 changes: 2 additions & 2 deletions test/ServerRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ class ServerRequestTest extends TestCase

public function setUp()
{
$this->request = new ServerRequest();
$this->request = $this->createDefaultServerRequest();
}

protected function createDefaultServerRequest()
{
return $this->request;
return new ServerRequest();
}

public function testServerParamsAreEmptyByDefault()
Expand Down

0 comments on commit 6bb1641

Please sign in to comment.