{"id":51373866,"url":"https://github.com/irukasano/phpunit-htmlhint","last_synced_at":"2026-07-03T10:01:24.107Z","repository":{"id":56785349,"uuid":"524830042","full_name":"irukasano/phpunit-htmlhint","owner":"irukasano","description":"add assertion of phpunit with htmlhint","archived":false,"fork":false,"pushed_at":"2022-08-16T04:10:10.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-27T15:13:54.927Z","etag":null,"topics":["htmlhint","phpunit"],"latest_commit_sha":null,"homepage":"","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/irukasano.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":"2022-08-15T02:18:48.000Z","updated_at":"2022-08-16T00:22:23.000Z","dependencies_parsed_at":"2022-08-16T04:30:35.855Z","dependency_job_id":null,"html_url":"https://github.com/irukasano/phpunit-htmlhint","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/irukasano/phpunit-htmlhint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irukasano%2Fphpunit-htmlhint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irukasano%2Fphpunit-htmlhint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irukasano%2Fphpunit-htmlhint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irukasano%2Fphpunit-htmlhint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irukasano","download_url":"https://codeload.github.com/irukasano/phpunit-htmlhint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irukasano%2Fphpunit-htmlhint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35081255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"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":["htmlhint","phpunit"],"created_at":"2026-07-03T10:01:23.209Z","updated_at":"2026-07-03T10:01:24.101Z","avatar_url":"https://github.com/irukasano.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpunit-htmlhint\n\nadd phpunit assertion by htmlhint\n\n## install\n\ninstall this library,\n\n```bash\n$ composer require irukasano/phpunit-htmlhint\n```\n\nand also needs to install [htmlhint](https://htmlhint.com/docs/user-guide/getting-started)\n\n```bash\n$ sudo apt install nodejs npm\n$ sudo npm install n -g\n$ sudo n stable\n$ sudo npm install htmlhint -g\n```\n\n## usage\n\n### cakephp3\n\nin your testcase ( ex. tests/TestCase/PagesControllerTest.php ), \n\n```php\nuse PHPUnitHmtlhint\\LintTestTrait;\n\nclass PagesControllerTest extends TestCase\n{\n    use IntegrationTestTrait;\n    use LintTestTrait;\n\n    public function test()\n    {\n        $this-\u003eget('/');\n        $html = $this-\u003e_response-\u003egetBody();\n        $this-\u003eassertHtmlhintOk($html);\n    }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firukasano%2Fphpunit-htmlhint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firukasano%2Fphpunit-htmlhint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firukasano%2Fphpunit-htmlhint/lists"}