herrera-io/phpunit-test-case
PHPUnit TestCase class and Extras trait that add helpers for common test chores: create/delete temporary files and directories, call protected/private methods, and get/set protected/private properties. Use as a base class or mix into your own test case.
TestCase lacks.TestCase alone.TestCase for framework-specific features (e.g., refreshDatabase()) while adding low-level utilities.Adopt if:
Look elsewhere if:
TestCase + RefreshDatabase for most needs (this adds minimal value).HttpTests, MakesHttpRequests).mockery or PHPUnit’s built-in tools).For Executives:
"This package standardizes repetitive test tasks—like accessing private methods or managing temporary files—in our PHPUnit tests. For legacy Laravel 5.x projects, it reduces test development time by 20–30% and improves CI/CD reliability by automating cleanup. It’s a lightweight, MIT-licensed solution with no vendor lock-in, ideal for our current PHPUnit 3.7 setup. The tradeoff? It’s not actively maintained, but it’s stable for our needs and avoids reinventing the wheel. We’d use it alongside Laravel’s built-in TestCase for framework-specific features."
For Engineering: *"This gives us a shared test utility layer for:
TestCase for those.How can I help you explore Laravel packages today?