{"id":27944931,"url":"https://github.com/elementor/eunit","last_synced_at":"2026-02-11T23:11:54.384Z","repository":{"id":262621628,"uuid":"379843445","full_name":"elementor/eunit","owner":"elementor","description":"Eunit is a php library to make WordPress PHPUnit less painful. Eunit is a collection of Test cases, common WordPress test helpers, and a few DB helpers to make the developer's life a little easier.","archived":false,"fork":false,"pushed_at":"2024-11-13T11:33:38.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-02T19:32:53.559Z","etag":null,"topics":["hosting-dev"],"latest_commit_sha":null,"homepage":"https://elementor.github.io/eunit/","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/elementor.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":"2021-06-24T07:39:31.000Z","updated_at":"2025-01-15T17:04:20.000Z","dependencies_parsed_at":"2024-11-13T12:28:31.501Z","dependency_job_id":"858c2bc8-003f-4a2d-87bb-f155e5f1fee5","html_url":"https://github.com/elementor/eunit","commit_stats":null,"previous_names":["elementor/eunit"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/elementor/eunit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementor%2Feunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementor%2Feunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementor%2Feunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementor%2Feunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elementor","download_url":"https://codeload.github.com/elementor/eunit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementor%2Feunit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29349268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T20:11:40.865Z","status":"ssl_error","status_checked_at":"2026-02-11T20:10:41.637Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["hosting-dev"],"created_at":"2025-05-07T12:55:14.786Z","updated_at":"2026-02-11T23:11:54.353Z","avatar_url":"https://github.com/elementor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cbr/\u003e\n\u003cdiv align=\"center\"\u003e\n\n\u003ch3 align=\"center\"\u003eEunit\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\nMake WordPress PHPUnit less painful\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003ca href=\"https://elementor.github.io/eunit/\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n  \n\u003ca href=\"https://github.com/elementor/eunit/issues/new?labels=bug\u0026template=bug-report---.md\"\u003eReport Bug .\u003c/a\u003e\n\u003ca href=\"https://github.com/elementor/eunit/issues/new?labels=enhancement\u0026template=feature-request---.md\"\u003eRequest Feature\u003c/a\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n## About The Project\n\nEunit is a php library to make WordPress PHPUnit less painful. Eunit is a collection of Test cases, common WordPress test helpers, and a few DB helpers to make the developer's life a little easier.\n## Getting Started\n\nGetting started with Eunit is simple and quick, just make sure you follow this guide.\n### Installation\n\n#### Composer\nTo install Eunit, via composer run the command below, and you will get the latest version\n\n```bash\ncomposer require --dev elementor/eunit\n```\n\nthen you need to do is make sure to include composer autoloader in your PHPUnit `bootstrap.php`\n\n\n```php\n// Require composer dependencies.\n// Pending on your vendor directory\nrequire_once dirname( dirname( __FILE__ ) ) . '/vendor/autoload.php';\n```\n\n#### Manually\nYou can also install Eunit via git,\n\n```bash\ngit clone https://github.com/elementor/eunit.git\n```\nThen you need to do is make sure to include Eunit instance in your PHPUnit bootstrap.php\n\n```php\n// Require eunit.php\n// Pending on your directory structure\nrequire_once dirname( dirname( __FILE__ ) ) . '/eunit/eunit.php';\n\\Eunit\\Eunit::instance();\n```\n\n### Configuration\nBefore actually using Eunit you need to add a few environment variables to you PHPUnit runtime which can be done be editing your `phpunit.xml` in the \u003cphp\u003e element.\n\n`EUNIT_TEST_CASE_NAMESPACE` should be set to the plugin main namespace\n\n```xml\n\u003cphp\u003e\n    \u003cenv name=\"EUNIT_TEST_CASE_NAMESPACE\" value=\"YourMainNamespace\"\u003e\n\u003c/php\u003e\n```\nAll that is left is to start using Eunit, head over to the [Docs to learn more](https://elementor.github.io/eunit/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felementor%2Feunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felementor%2Feunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felementor%2Feunit/lists"}