sanmai/phpunit-double-colon-syntax
Run individual PHPUnit test methods with the familiar file::method syntax (like pytest). This dev package rewrites args via Composer autoload so vendor/bin/phpunit tests/FooTest.php::testBar becomes file + --filter automatically. Supports multiple methods; PHPUnit 6+.
file::method), reducing cognitive load for developers transitioning between ecosystems. This supports Laravel’s goal of intuitive, framework-agnostic tooling and improves onboarding for hybrid teams.TestFile.php::testMethod syntax is self-documenting, improving readability in CI/CD pipelines and reducing ambiguity in large codebases.Adopt when:
--filter or ambiguous method names) or inconsistent test syntax across contributors.phpunit UserTest.php::testLogin).Look elsewhere when:
TestCase inheritance).Executives:
*"This package eliminates a hidden productivity drain in our test suite: ambiguous or error-prone test references. By adopting the familiar file::method syntax (e.g., phpunit UserTest.php::testLogin), we:
Engineering (Laravel Core Teams):
*"This adds pytest-style syntax to PHPUnit (phpunit UserTest.php::testLogin), making test references self-documenting and unambiguous. Key benefits for Laravel:
--filter arguments or string-based method names (e.g., phpunit --filter 'testLogin' → phpunit UserTest.php::testLogin).QA/Testing Leads:
*"This package simplifies test execution by enabling intuitive file::method syntax while maintaining full compatibility with PHPUnit’s native --filter functionality. It’s particularly valuable for:
How can I help you explore Laravel packages today?