{"id":15450340,"url":"https://github.com/wpstarter/wp-testbench","last_synced_at":"2025-10-09T12:17:38.910Z","repository":{"id":169697976,"uuid":"645712673","full_name":"wpstarter/wp-testbench","owner":"wpstarter","description":"A tool to set up a WordPress test environment for PHPUnit testing","archived":false,"fork":false,"pushed_at":"2023-06-05T04:27:53.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T13:12:27.258Z","etag":null,"topics":["phpunit","test","testing","testing-tools","unittest","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpstarter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-05-26T09:10:57.000Z","updated_at":"2023-08-16T16:52:33.000Z","dependencies_parsed_at":"2023-06-09T11:30:36.888Z","dependency_job_id":null,"html_url":"https://github.com/wpstarter/wp-testbench","commit_stats":null,"previous_names":["wpstarter/ws-tests-lib"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/wpstarter/wp-testbench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpstarter%2Fwp-testbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpstarter%2Fwp-testbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpstarter%2Fwp-testbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpstarter%2Fwp-testbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpstarter","download_url":"https://codeload.github.com/wpstarter/wp-testbench/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpstarter%2Fwp-testbench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001448,"owners_count":26083078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["phpunit","test","testing","testing-tools","unittest","wordpress"],"created_at":"2024-10-01T21:04:37.542Z","updated_at":"2025-10-09T12:17:38.891Z","avatar_url":"https://github.com/wpstarter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About WpTestbench\nWpTestbench is a tool used to set up a WordPress test environment for PHPUnit testing, in order to test your plugin.\n\n## Installation\n\nInstall testbench via composer\n\n    composer require wpstarter/wp-testbench --dev\n\nInstall WordPress\n\n    ./vendor/bin/wp-testbench-install \u003cdb-name\u003e \u003cdb-user\u003e [db-pass] [db-host] [wp-version] [--skip-database-creation]\n\nUpdate phpunit.xml\n\n    \u003cphpunit \n        ...\n        bootstrap=\"./vendor/wpstarter/wp-testbench/bootstrap.php\"\n    \n    \u003e\n        ...\n        \u003cphp\u003e\n            \u003cserver name=\"WP_TESTBENCH_PLUGIN\" value=\"your-plugin.php\"/\u003e\n            ...\n        \u003c/php\u003e\n    \u003c/phpunit\u003e\n\nCustom wp-config.php\n\n    \u003cphpunit\u003e\n        \u003cphp\u003e\n            \u003cserver name=\"WP_TESTBENCH_CONFIG\" value=\"your-config.php\"/\u003e\n        \u003c/php\u003e\n    \u003c/phpunit\u003e\n\nThat's all then you can run the PHPUnit test\n\n    ./vendor/bin/phpunit\n\n\n\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpstarter%2Fwp-testbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpstarter%2Fwp-testbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpstarter%2Fwp-testbench/lists"}