public function testFileSizeLimitExceeded(): void
{ $exception = MediaException::
fileSizeLimitExceeded();
static::
assertEquals(Response::HTTP_BAD_REQUEST,
$exception->
getStatusCode());
static::
assertEquals(MediaException::MEDIA_FILE_SIZE_LIMIT_EXCEEDED,
$exception->
getErrorCode());
static::
assertEquals('Source file exceeds maximum file size limit.',
$exception->
getMessage());
} public function testMissingFileExtension(): void
{ $exception = MediaException::
missingFileExtension();
static::
assertEquals(Response::HTTP_BAD_REQUEST,
$exception->
getStatusCode());
static::
assertEquals(MediaException::MEDIA_MISSING_FILE_EXTENSION,
$exception->
getErrorCode());
static::
assertEquals( 'No file extension provided. Please use the "extension" query parameter to specify the extension of the uploaded file.',
$exception->
getMessage() );
} public function testIllegalFileName(): void
{