Skip to content

Commit

Permalink
Merge branch 'master' into 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brentscheffler committed May 26, 2024
2 parents 57411a2 + fe25b8e commit e1686fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": "^8.2",
"psr/http-message": "^1.0",
"psr/http-message": "^1.0|^2.0",
"psr/http-factory": "^1.0"
},
"provide": {
Expand Down
12 changes: 11 additions & 1 deletion tests/UploadedFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,17 @@ public function test_move_to_unwriteable_target_throws_runtime_exception(): void
$uploadedFile = $this->makeFile();

$this->expectException(RuntimeException::class);
$uploadedFile->moveTo("/root");

switch (PHP_OS) {
case 'WINNT':
$destination = 'C:\\';
break;

default:
$destination = '/root';
}

$uploadedFile->moveTo($destination);
}

public function test_calling_move_to_more_than_once_throws_exception(): void
Expand Down

0 comments on commit e1686fc

Please sign in to comment.