UploadedFileTest
extends TestCase
uses
HttpFactoryTrait
Table of Contents
Properties
-
$cleanup
: array<string|int, string>
Methods
-
invalidErrorStatuses()
: array<string|int, mixed>
-
invalidStreams()
: array<string|int, mixed>
-
nonOkErrorStatus()
: array<string|int, mixed>
-
testCannotMoveToEmptyTarget()
: void
-
testCannotMoveToUnwritableDirectory()
: void
-
testCannotRetrieveStreamAfterMove()
: void
-
testConstructorDoesNotRaiseExceptionForInvalidStreamWhenErrorStatusPresent()
: void
-
testGetStreamRaisesExceptionWhenErrorStatusPresent()
: void
-
testGetStreamReturnsOriginalStreamObject()
: void
-
testGetStreamReturnsWrappedPhpStream()
: void
-
testMoveCannotBeCalledMoreThanOnce()
: void
-
testMoveToCreatesStreamIfOnlyAFilenameWasProvided()
: void
-
testMoveToRaisesExceptionWhenErrorStatusPresent()
: void
-
testNormalizeFilesRaisesException()
: void
-
testRaisesExceptionOnInvalidErrorStatus()
: void
-
testRaisesExceptionOnInvalidStreamOrFile()
: mixed
-
testSuccessful()
: void
-
setUp()
: void
-
tearDown()
: void
$cleanup
protected
array<string|int, string>
$cleanup
invalidErrorStatuses()
public
static invalidErrorStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed>
invalidStreams()
public
static invalidStreams() : array<string|int, mixed>
Return values
array<string|int, mixed>
nonOkErrorStatus()
public
static nonOkErrorStatus() : array<string|int, mixed>
Return values
array<string|int, mixed>
testCannotMoveToEmptyTarget()
public
testCannotMoveToEmptyTarget() : void
testCannotMoveToUnwritableDirectory()
public
testCannotMoveToUnwritableDirectory() : void
testCannotRetrieveStreamAfterMove()
public
testCannotRetrieveStreamAfterMove() : void
testConstructorDoesNotRaiseExceptionForInvalidStreamWhenErrorStatusPresent()
public
testConstructorDoesNotRaiseExceptionForInvalidStreamWhenErrorStatusPresent(int $status) : void
Parameters
-
$status
: int
-
-
#[DataProvider]
-
'nonOkErrorStatus'
testGetStreamRaisesExceptionWhenErrorStatusPresent()
public
testGetStreamRaisesExceptionWhenErrorStatusPresent(int $status) : void
Parameters
-
$status
: int
-
-
#[DataProvider]
-
'nonOkErrorStatus'
testGetStreamReturnsOriginalStreamObject()
public
testGetStreamReturnsOriginalStreamObject() : void
testGetStreamReturnsWrappedPhpStream()
public
testGetStreamReturnsWrappedPhpStream() : void
testMoveCannotBeCalledMoreThanOnce()
public
testMoveCannotBeCalledMoreThanOnce() : void
testMoveToCreatesStreamIfOnlyAFilenameWasProvided()
public
testMoveToCreatesStreamIfOnlyAFilenameWasProvided() : void
testMoveToRaisesExceptionWhenErrorStatusPresent()
public
testMoveToRaisesExceptionWhenErrorStatusPresent(int $status) : void
Parameters
-
$status
: int
-
-
#[DataProvider]
-
'nonOkErrorStatus'
testNormalizeFilesRaisesException()
public
testNormalizeFilesRaisesException() : void
testRaisesExceptionOnInvalidErrorStatus()
public
testRaisesExceptionOnInvalidErrorStatus(int $status) : void
Parameters
-
$status
: int
-
-
#[DataProvider]
-
'invalidErrorStatuses'
testRaisesExceptionOnInvalidStreamOrFile()
public
testRaisesExceptionOnInvalidStreamOrFile(mixed $streamOrFile) : mixed
Parameters
-
$streamOrFile
: mixed
-
-
#[DataProvider]
-
'invalidStreams'
testSuccessful()
public
testSuccessful() : void
setUp()
protected
setUp() : void
tearDown()
protected
tearDown() : void