From 0ebbc8f824b0592bba6025c3d4d2677ad88072f7 Mon Sep 17 00:00:00 2001 From: katsuren Date: Mon, 4 Jul 2022 18:42:55 +0900 Subject: [PATCH] fixed psalm error Signed-off-by: katsuren --- test/UploadedFileTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/UploadedFileTest.php b/test/UploadedFileTest.php index 75840ca9..c741b838 100755 --- a/test/UploadedFileTest.php +++ b/test/UploadedFileTest.php @@ -32,6 +32,7 @@ class UploadedFileTest extends TestCase { + /** @var false|null|string */ protected $orgFile; protected $tmpFile; @@ -149,6 +150,9 @@ public function testGetStreamReturnsStreamForFile() $this->assertSame($stream, $r->getValue($uploadStream)); } + /** + * @return void + */ public function testMovesFileToDesignatedPath() { $originalContents = 'Foo bar!'; @@ -279,6 +283,7 @@ public function testGetStreamRaisesExceptionWhenErrorStatusPresent($status) /** * @group 82 + * @return void */ public function testMoveToCreatesStreamIfOnlyAFilenameWasProvided() { @@ -332,6 +337,9 @@ public function testMoveToRaisesExceptionWithAppropriateMessageWhenUploadErrorDe $uploadedFile->moveTo('/tmp/foo'); } + /** + * @return void + */ public function testMoveToInCLIShouldRemoveOriginalFile() { $this->orgFile = tempnam(sys_get_temp_dir(), 'ORG');