sanmai/phpunit-double-colon-syntax
Run individual PHPUnit test methods using the familiar file::method syntax: vendor/bin/phpunit tests/FooTest.php::testBar. Supports multiple methods, no config, works with PHPUnit 6+. Translates to --filter under the hood (not compatible with --filter).
file::method), reducing cognitive load for developers transitioning between ecosystems. This supports Laravel’s goal of intuitive, framework-agnostic tooling and reduces friction for teams using multiple languages.UserTest.php::testMethod) is self-documenting, improving maintainability in large codebases and reducing ambiguity in CI/CD pipelines.Adopt when:
--filter or ambiguous method names) or inconsistent test syntax across contributors.phpunit UserTest.php::testLogin).Look elsewhere when:
Test::test('description') syntax and offers a more modern testing experience.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:
--filter arguments or incorrect method names.
Implementation is trivial—just composer require --dev sanmai/phpunit-double-colon-syntax—and it integrates seamlessly with Laravel’s existing testing infrastructure. No breaking changes, only improvements."*Documentation & Community Teams:
*"This package standardizes test command syntax across Laravel’s ecosystem, making it easier for developers to adopt Laravel’s testing workflows. By supporting file::method syntax, we:
How can I help you explore Laravel packages today?