Skip to content

Commit

Permalink
Removed: Removed unused test method and phpstan ignore-command in Upl…
Browse files Browse the repository at this point in the history
…oadedFileTest
  • Loading branch information
merloxx committed Jul 24, 2023
1 parent 0c450f8 commit 6b00a71
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/UploadedFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public function testConstructorThrowsExceptionOnInvalidErrorStatus(int $status):
{
$this->expectException(InvalidArgumentException::class);

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

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

/*public function testGetStreamReturnsStreamForFile(): void
{
$this->tempFile = $stream = (string)tempnam(sys_get_temp_dir(), 'zaphyr');
$upload = new UploadedFile($stream, 0, UPLOAD_ERR_OK);
$uploadStream = $upload->getStream();
$property = new ReflectionProperty($uploadStream, 'stream');
$property->setAccessible(true);
self::assertSame($stream, $property->getValue($uploadStream));
}*/

public function testGetStreamCannotRetrieveMovedStream(): void
{
$this->expectException(RuntimeException::class);
Expand Down

0 comments on commit 6b00a71

Please sign in to comment.