Introduce PHPUnit integration and initial test suite#6
Merged
dieselxxx merged 5 commits intoJun 24, 2026
Conversation
Revised the `README.md` to reflect the introduction of PHPUnit testing infrastructure into the `feature/phpunit-integration-and-initial-tests` branch. Changes include updated badge links, branch-specific information, and details on core testing objectives, architectural goals, and initial test coverage. Establishes a clear purpose and documentation for the new testing layer within the FireHub ecosystem.
1 task
Reordered and standardized docblock annotations in the `equals` and `sameAs` methods. Adjusted the position of `@uses` and `@since` annotations to improve readability and align with documentation conventions. No functional changes were introduced.
Updated the include path in `phpstan.neon` to align with correct casing (`Config` instead of `config`). This ensures compatibility with case-sensitive file systems and prevents potential runtime issues during static analysis.
Introduced a `phpunit.xml` configuration file to establish a testing framework for the repository. Updated `.gitattributes` to exclude the PHPUnit configuration file from export. Enhanced `composer.json` by adding `the-firehub-project/testing` as a development dependency and configuring `autoload` and `autoload-dev` sections to map source and test namespaces. These changes lay the groundwork for unit testing and streamlined development workflows.
Implemented `ValueObjectTest` to verify the behavior of the `ValueObject` base class, covering the `equals` and `sameAs` methods. Introduced `DummyStringVO` and `DummyIntVO` stubs to facilitate testing. Added a reusable PHPUnit GitHub Actions workflow for automated test execution on pull requests. These changes enhance code reliability and ensure foundational test coverage for value objects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💢 Feature / Enhancement Pull Request
Related Issue
Closes Introduce PHPUnit testing infrastructure #5
Description
Feature Overview
Functional Changes
firehub/testingdependencyphpunit.xml, bootstrap structure)API / Behavior Changes
Public API changes:
FireHub\Testing\FireHubTestCaseInternal behavior changes:
firehub/testingfor test executionDependencies
the-firehub-project/testing(dev dependency)phpunit/phpunit(transitive dependency via testing package)Compatibility
Testing
Validation
Automated Tests
Documentation
Checklist
Risks / Impact
Potential Impacts
Side effects:
Affected modules:
QA Focus Areas
vendor/bin/phpunitFireHubTestCaseinheritance works across Core testsNotes
Technical Notes
firehub/testingto avoid direct Core dependencyQA / Reviewer Notes