Skip to content

Commit a84e204

Browse files
danopzNyholm
authored andcommitted
fixed return type hints for factory methods (#15)
1 parent cc2a34a commit a84e204

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

src/ResponseIntegrationTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Http\Psr7Test;
44

5-
use Psr\Http\Message\RequestInterface;
65
use Psr\Http\Message\ResponseInterface;
76

87
/**
@@ -23,7 +22,7 @@ abstract class ResponseIntegrationTest extends BaseTest
2322
private $response;
2423

2524
/**
26-
* @return RequestInterface that is used in the tests
25+
* @return ResponseInterface that is used in the tests
2726
*/
2827
abstract public function createSubject();
2928

src/ServerRequestIntegrationTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Http\Psr7Test;
44

5-
use Psr\Http\Message\RequestInterface;
65
use Psr\Http\Message\ServerRequestInterface;
76

87
/**
@@ -21,7 +20,7 @@ abstract class ServerRequestIntegrationTest extends BaseTest
2120
private $serverRequest;
2221

2322
/**
24-
* @return RequestInterface that is used in the tests
23+
* @return ServerRequestInterface that is used in the tests
2524
*/
2625
abstract public function createSubject();
2726

src/UploadedFileIntegrationTest.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
namespace Http\Psr7Test;
44

5-
use Psr\Http\Message\RequestInterface;
6-
use Psr\Http\Message\ServerRequestInterface;
5+
use Psr\Http\Message\UploadedFileInterface;
76

87
/**
98
* TODO Write me.
@@ -18,18 +17,18 @@ abstract class UploadedFileIntegrationTest extends BaseTest
1817
protected $skippedTests = [];
1918

2019
/**
21-
* @var ServerRequestInterface
20+
* @var UploadedFileInterface
2221
*/
23-
private $serverRequest;
22+
private $uploadedFile;
2423

2524
/**
26-
* @return RequestInterface that is used in the tests
25+
* @return UploadedFileInterface that is used in the tests
2726
*/
2827
abstract public function createSubject();
2928

3029
protected function setUp()
3130
{
32-
$this->serverRequest = $this->createSubject();
31+
$this->uploadedFile = $this->createSubject();
3332
}
3433

3534
public function testNothing()

0 commit comments

Comments
 (0)