{"id":15226376,"url":"https://github.com/cabdesigns/trace-test-listener","last_synced_at":"2026-04-01T19:44:46.571Z","repository":{"id":31468214,"uuid":"35032210","full_name":"cabdesigns/trace-test-listener","owner":"cabdesigns","description":"Searches the call trace when running your unit tests. Useful for identifying dependencies that should be mocked.","archived":false,"fork":false,"pushed_at":"2015-05-04T13:56:47.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-27T23:42:25.005Z","etag":null,"topics":["php","phpunit","phpunit-listener","unit-testing"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cabdesigns.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-04T11:58:24.000Z","updated_at":"2023-06-11T17:37:03.000Z","dependencies_parsed_at":"2022-09-13T08:51:08.862Z","dependency_job_id":null,"html_url":"https://github.com/cabdesigns/trace-test-listener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cabdesigns/trace-test-listener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabdesigns%2Ftrace-test-listener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabdesigns%2Ftrace-test-listener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabdesigns%2Ftrace-test-listener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabdesigns%2Ftrace-test-listener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cabdesigns","download_url":"https://codeload.github.com/cabdesigns/trace-test-listener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabdesigns%2Ftrace-test-listener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"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":["php","phpunit","phpunit-listener","unit-testing"],"created_at":"2024-09-28T20:04:52.103Z","updated_at":"2026-04-01T19:44:46.555Z","avatar_url":"https://github.com/cabdesigns.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trace test listener\nSearches the call trace when running your unit tests. Useful for identifying dependencies that should be mocked.\n\nScenarios for using this may include finding out which tests are:\n\n* Hitting a real database, web service, etc.\n* Using deprecated features.\n* Using tightly coupled code.\n\n![Screenshot of terminal using TraceTestListener](docs/terminal-example.png)\n\n## Installation\n\nTraceTestListener is installable via [Composer](http://getcomposer.org) and should be added as a `require-dev` dependency:\n\n    php composer.phar require --dev cabdesigns/trace-test-listener dev-master\n\nXDebug **must** be installed for this listener to work.\n\n## Configuration\n\nConfigure the search terms you want to look for inside the call trace, using an array argument.\n\nYou can also optionally set the directory to write the trace files to. This will default to the `traces` folder.\n\n```xml\n\u003cphpunit bootstrap=\"vendor/autoload.php\"\u003e\n\n    \u003c!-- ... other suite configuration here ... --\u003e\n\n    \u003clisteners\u003e\n        \u003clistener class=\"CABDesigns\\PHPUnit\\Listener\\TraceTestListener\"\u003e\n            \u003carguments\u003e\n                \u003carray\u003e\n                    \u003celement key=\"0\"\u003e\n\t\t\t          \t\u003cstring\u003ecurl_exec\u003c/string\u003e\n\t\t\t        \u003c/element\u003e\n                \u003c/array\u003e\n                \u003cstring\u003etraces\u003c/string\u003e\n            \u003c/arguments\u003e\n        \u003c/listener\u003e\n    \u003c/listeners\u003e\n\u003c/phpunit\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcabdesigns%2Ftrace-test-listener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcabdesigns%2Ftrace-test-listener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcabdesigns%2Ftrace-test-listener/lists"}