Skip to content

Commit 6b00a71

Browse files
committed
Removed: Removed unused test method and phpstan ignore-command in UploadedFileTest
1 parent 0c450f8 commit 6b00a71

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/UploadedFileTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public function testConstructorThrowsExceptionOnInvalidErrorStatus(int $status):
5656
{
5757
$this->expectException(InvalidArgumentException::class);
5858

59-
/** @phpstan-ignore-next-line */
6059
new UploadedFile(fopen('php://temp', 'wb+'), 0, $status);
6160
}
6261

@@ -106,18 +105,6 @@ public function testGetStreamReturnsWrappedPhpStream(): void
106105
self::assertSame($stream, (new UploadedFile($stream, 0, UPLOAD_ERR_OK))->getStream()->detach());
107106
}
108107

109-
/*public function testGetStreamReturnsStreamForFile(): void
110-
{
111-
$this->tempFile = $stream = (string)tempnam(sys_get_temp_dir(), 'zaphyr');
112-
$upload = new UploadedFile($stream, 0, UPLOAD_ERR_OK);
113-
$uploadStream = $upload->getStream();
114-
115-
$property = new ReflectionProperty($uploadStream, 'stream');
116-
$property->setAccessible(true);
117-
118-
self::assertSame($stream, $property->getValue($uploadStream));
119-
}*/
120-
121108
public function testGetStreamCannotRetrieveMovedStream(): void
122109
{
123110
$this->expectException(RuntimeException::class);

0 commit comments

Comments
 (0)