Skip to content

Remove duplicate TestCase (sibling of verapdf dedup) #3

Description

@jbagsik

Context

Confirmed sibling of the veraPDF duplicate-TestCase defect: kosit-validator also ships two identical files — src/Tests/TestCase.php and tests/TestCase.php — both declaring Moox\KositValidator\Tests\TestCase (verified diff-clean). The veraPDF smell was copied from here.

What to build

kosit-validator has exactly one Moox\KositValidator\Tests\TestCase, resolved through composer autoloading, with no duplicate file and no runtime autoloader shim.

Acceptance criteria

  • Only one TestCase file remains (canonical location per package convention; the duplicate is deleted).
  • composer.json autoload-dev maps the Tests\ namespace to the kept location; the in-file autoloader shim is removed.
  • Pest.php still resolves TestCase; the full package suite runs green.
  • SonarQube no longer reports duplication for the removed file.

Blocked by

None — can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentSpec is ready for an agent to implement

    Type

    No type

    Fields

    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