Skip to content

Commit

Permalink
fixed psalm error
Browse files Browse the repository at this point in the history
Signed-off-by: katsuren <katsuren.houken@gmail.com>
  • Loading branch information
k2rn authored and Ocramius committed Jul 6, 2022
1 parent d04b1ff commit 0ebbc8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/UploadedFileTest.php
Expand Up @@ -32,6 +32,7 @@

class UploadedFileTest extends TestCase
{
/** @var false|null|string */
protected $orgFile;

protected $tmpFile;
Expand Down Expand Up @@ -149,6 +150,9 @@ public function testGetStreamReturnsStreamForFile()
$this->assertSame($stream, $r->getValue($uploadStream));
}

/**
* @return void
*/
public function testMovesFileToDesignatedPath()
{
$originalContents = 'Foo bar!';
Expand Down Expand Up @@ -279,6 +283,7 @@ public function testGetStreamRaisesExceptionWhenErrorStatusPresent($status)

/**
* @group 82
* @return void
*/
public function testMoveToCreatesStreamIfOnlyAFilenameWasProvided()
{
Expand Down Expand Up @@ -332,6 +337,9 @@ public function testMoveToRaisesExceptionWithAppropriateMessageWhenUploadErrorDe
$uploadedFile->moveTo('/tmp/foo');
}

/**
* @return void
*/
public function testMoveToInCLIShouldRemoveOriginalFile()
{
$this->orgFile = tempnam(sys_get_temp_dir(), 'ORG');
Expand Down

0 comments on commit 0ebbc8f

Please sign in to comment.