Skip to content

test(autoloader): Improve test coverage for ClassLoader.php #292

@usernane

Description

@usernane

File

Autoload/ClassLoader.php

Current Coverage

54.2% (155/286)

Scenarios to Cover

  • Loading a class from a registered directory
  • Loading a class from a cached class map
  • Cache file creation and invalidation
  • Handling duplicate class registrations
  • Loading from composer autoload
  • ClassLoaderException thrown for unresolvable class
  • Namespace-to-directory mapping edge cases

Notes

A bug in the autoloader breaks the entire application. ~131 statements uncovered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingTest coverage tasks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions