Skip to content

test(FileUploader): Add tests for getMaxFileSize() #59

@usernane

Description

@usernane

File

WebFiori/File/FileUploader.php

Current Coverage

getMaxFileSize() has no tests.

Scenarios to Cover

  • Returns correct value when upload_max_filesize is set in M (megabytes)
  • Returns correct value when set in K (kilobytes)
  • Returns correct value when set in G (gigabytes)
  • Returns correct value when set as plain bytes (no suffix)

Notes

This test may need to mock or temporarily override the ini value. Also related to issue about incorrect 1000 vs 1024 math.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingTest coverage improvements

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions