{"id":30176488,"url":"https://github.com/sanmai/phpunit-double-colon-syntax","last_synced_at":"2026-01-20T17:03:34.683Z","repository":{"id":305636521,"uuid":"1023470847","full_name":"sanmai/phpunit-double-colon-syntax","owner":"sanmai","description":"Double Colon Syntax Support for PHPUnit. Makes `Foo.php::testBar` just work.","archived":false,"fork":false,"pushed_at":"2025-12-01T03:39:45.000Z","size":35,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-01T04:44:46.476Z","etag":null,"topics":["chatgpt","claude","gemini","hallucination","hallucination-mitigation","llm","phpunit"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanmai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["sanmai"]}},"created_at":"2025-07-21T08:02:22.000Z","updated_at":"2025-10-10T08:04:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d2b94e3-cbae-4225-8633-9367abfc03b8","html_url":"https://github.com/sanmai/phpunit-double-colon-syntax","commit_stats":null,"previous_names":["sanmai/phpunit-double-colon-syntax"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sanmai/phpunit-double-colon-syntax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanmai%2Fphpunit-double-colon-syntax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanmai%2Fphpunit-double-colon-syntax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanmai%2Fphpunit-double-colon-syntax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanmai%2Fphpunit-double-colon-syntax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanmai","download_url":"https://codeload.github.com/sanmai/phpunit-double-colon-syntax/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanmai%2Fphpunit-double-colon-syntax/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","claude","gemini","hallucination","hallucination-mitigation","llm","phpunit"],"created_at":"2025-08-12T03:01:03.265Z","updated_at":"2026-01-20T17:03:34.677Z","avatar_url":"https://github.com/sanmai.png","language":"PHP","funding_links":["https://github.com/sponsors/sanmai"],"categories":[],"sub_categories":[],"readme":"[![Total Downloads](https://poser.pugx.org/sanmai/phpunit-double-colon-syntax/downloads)](https://packagist.org/packages/sanmai/phpunit-double-colon-syntax)\n\n# Double Colon Syntax for PHPUnit\n\nPHPUnit doesn't natively support the `file::method` syntax commonly used in other testing frameworks, such as pytest (`pytest test_file.py::test_method`). However, I found that AI assistants frequently suggest this syntax and even [strongly believe](https://tonsky.me/blog/gaslight-driven-development/) this syntax is a thing ([ChatGPT](https://chatgpt.com/s/t_687dfae8a4a481919793103c446e4d4f), [Gemini](https://g.co/gemini/share/402ff27b5910), [Claude](https://claude.ai/share/a1a12793-0eeb-4214-9d0a-87de3d4b5de2)), which is bonkers.\n\nSo it was always frustrating to see how an assistant generates a command using this syntax and fails, day after day, wasting time, tokens, context window, and my attention. Not anymore.\n\nNow everyone can run individual test methods using the familiar `file::method` syntax:\n\n```bash\nvendor/bin/phpunit tests/ExampleTest.php::testItWorks\n```\n\nBut before...\n\n## Installation\n\n```bash\ncomposer require --dev sanmai/phpunit-double-colon-syntax\n```\n\nThat's it! No configuration needed. Works with PHPUnit 6 and above.\n\n## Usage\n\nIt works with multiple methods:\n\n```bash\nvendor/bin/phpunit tests/ExampleTest.php::test_one tests/ExampleTest.php::test_two\n```\n\nIt does not work with `--filter`: you have to choose this or that syntax, not both.\n\n## How It Works\n\nUses Composer's autoloader to intercept and transform arguments before PHPUnit starts. The `file::method` syntax becomes `file --filter method` automatically. It targets specifically `vendor/bin/phpunit` and ignores everything else.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanmai%2Fphpunit-double-colon-syntax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanmai%2Fphpunit-double-colon-syntax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanmai%2Fphpunit-double-colon-syntax/lists"}