Skip to content

Commit

Permalink
Compatibility with recent PHPUnit (8) (#132)
Browse files Browse the repository at this point in the history
* Compatibility with recent PHPUnit

* Allow phpunit 8

Co-authored-by: Nyholm <tobias.nyholm@gmail.com>
  • Loading branch information
DavidPrevot and Nyholm authored Nov 14, 2020
1 parent 66e6f49 commit 1e712e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"psr/http-factory": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5",
"phpunit/phpunit": "^7.5 || 8.5",
"php-http/psr7-integration-tests": "^1.0",
"http-interop/http-factory-tests": "^0.8",
"symfony/error-handler": "^4.4"
Expand Down
4 changes: 2 additions & 2 deletions tests/UploadedFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class UploadedFileTest extends TestCase
{
protected $cleanup;

public function setUp()
public function setUp(): void
{
$this->cleanup = [];
}

public function tearDown()
public function tearDown(): void
{
foreach ($this->cleanup as $file) {
if (is_scalar($file) && file_exists($file)) {
Expand Down

0 comments on commit 1e712e8

Please sign in to comment.