Skip to content

Add unit tests for json index methods in Package_PHP_Web #177

Open

Description

@lhsazevedo

This issue is specifically to add the first unit tests for the Package_PHP_Web class, which currently have no test coverage, focusing on the writeJsonIndex and processJsonIndex methods.

A follow-up issue should be created to address unit tests for the remaining methods.

Activity

  1. lhsazevedo commented on Nov 3, 2024

    @lhsazevedo
    ContributorAuthor

    @haszi Please assign me

  2. lhsazevedo commented on Jan 10, 2025

    @lhsazevedo
    ContributorAuthor

    Context: #160 (review)

  3. lhsazevedo commented on Jan 10, 2025

    @lhsazevedo
    ContributorAuthor

    Hi @haszi

    I declared these methods as private, which makes it a bit tricky to hook into them using the existing approach of extending classes (i.e. Test*.php classes in phpdotnet/phd).

    Would it be okay to extract this JSON index behavior into a dedicated class and just test it directly? Or would you prefer that I find a way to maintain the current strategy of test subject extension?

  4. lhsazevedo commented on Jan 23, 2025

    @lhsazevedo
    ContributorAuthor
  5. Girgias commented on Jan 30, 2025

    @Girgias
    Member

    Sorry, I think extracting the index into a dedicated class makes sense.

  6. added a commit that references this issue on Feb 12, 2026
    7a39166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions