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

Commit c0ebb95

Browse files
committed
Merge branch 'qa/383' into develop
Forward port #383
2 parents 257d1c3 + 7241f86 commit c0ebb95

9 files changed

+15
-15
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"ext-libxml": "*",
3737
"http-interop/http-factory-tests": "^0.5.0",
3838
"php-http/psr7-integration-tests": "dev-master",
39-
"phpunit/phpunit": "^7.0.2",
39+
"phpunit/phpunit": "^7.5.18",
4040
"zendframework/zend-coding-standard": "~1.0.0"
4141
},
4242
"conflict": {

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/MessageTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MessageTraitTest extends TestCase
2424
*/
2525
protected $message;
2626

27-
public function setUp()
27+
protected function setUp() : void
2828
{
2929
$this->message = new Request(null, null, $this->createMock(StreamInterface::class));
3030
}

test/PhpInputStreamTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PhpInputStreamTest extends TestCase
2727
*/
2828
protected $stream;
2929

30-
public function setUp()
30+
protected function setUp() : void
3131
{
3232
$this->file = __DIR__ . '/TestAsset/php-input-stream.txt';
3333
$this->stream = new PhpInputStream($this->file);

test/RequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class RequestTest extends TestCase
2323
*/
2424
protected $request;
2525

26-
public function setUp()
26+
protected function setUp() : void
2727
{
2828
$this->request = new Request();
2929
}

test/ResponseTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ResponseTest extends TestCase
4242
*/
4343
protected $response;
4444

45-
public function setUp()
45+
protected function setUp() : void
4646
{
4747
$this->response = new Response();
4848
}
@@ -223,7 +223,7 @@ public function testCreateWithValidStatusCodes($code)
223223
$result = $response->getStatusCode();
224224

225225
$this->assertSame((int) $code, $result);
226-
$this->assertInternalType('int', $result);
226+
$this->assertIsInt($result);
227227
}
228228

229229
public function validStatusCodes()
@@ -311,7 +311,7 @@ public function testConstructorRaisesExceptionForInvalidHeaders($headers, $conta
311311
public function testReasonPhraseCanBeEmpty()
312312
{
313313
$response = $this->response->withStatus(555);
314-
$this->assertInternalType('string', $response->getReasonPhrase());
314+
$this->assertIsString($response->getReasonPhrase());
315315
$this->assertEmpty($response->getReasonPhrase());
316316
}
317317

test/ServerRequestTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ServerRequestTest extends TestCase
2323
*/
2424
protected $request;
2525

26-
public function setUp()
26+
protected function setUp() : void
2727
{
2828
$this->request = new ServerRequest();
2929
}
@@ -182,7 +182,7 @@ public function testUsesProvidedConstructorArguments($parameterMethod, $methodRe
182182
public function testCookieParamsAreAnEmptyArrayAtInitialization()
183183
{
184184
$request = new ServerRequest();
185-
$this->assertInternalType('array', $request->getCookieParams());
185+
$this->assertIsArray($request->getCookieParams());
186186
$this->assertCount(0, $request->getCookieParams());
187187
}
188188

@@ -192,7 +192,7 @@ public function testCookieParamsAreAnEmptyArrayAtInitialization()
192192
public function testQueryParamsAreAnEmptyArrayAtInitialization()
193193
{
194194
$request = new ServerRequest();
195-
$this->assertInternalType('array', $request->getQueryParams());
195+
$this->assertIsArray($request->getQueryParams());
196196
$this->assertCount(0, $request->getQueryParams());
197197
}
198198

test/StreamTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ class StreamTest extends TestCase
4646
*/
4747
protected $stream;
4848

49-
public function setUp()
49+
protected function setUp() : void
5050
{
5151
$this->tmpnam = null;
5252
$this->stream = new Stream('php://memory', 'wb+');
5353
}
5454

55-
public function tearDown()
55+
protected function tearDown() : void
5656
{
5757
if ($this->tmpnam && file_exists($this->tmpnam)) {
5858
unlink($this->tmpnam);

test/UploadedFileTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ class UploadedFileTest extends TestCase
3939
{
4040
protected $tmpFile;
4141

42-
public function setUp()
42+
protected function setUp() : void
4343
{
4444
$this->tmpfile = null;
4545
}
4646

47-
public function tearDown()
47+
protected function tearDown() : void
4848
{
4949
if (is_string($this->tmpFile) && file_exists($this->tmpFile)) {
5050
unlink($this->tmpFile);

0 commit comments

Comments
 (0)