{"id":16155315,"url":"https://github.com/eniehack/phpunit-primer","last_synced_at":"2025-04-07T00:53:56.981Z","repository":{"id":110661484,"uuid":"515006496","full_name":"eniehack/phpunit-primer","owner":"eniehack","description":"a repository to introduce phpunit","archived":false,"fork":false,"pushed_at":"2022-08-27T16:20:47.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"trunk","last_synced_at":"2025-02-13T06:41:18.943Z","etag":null,"topics":[],"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/eniehack.png","metadata":{"files":{"readme":"README.org","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":"2022-07-18T02:13:04.000Z","updated_at":"2022-08-21T14:46:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"8fe98da0-1d00-43db-a1c6-a0e42439329a","html_url":"https://github.com/eniehack/phpunit-primer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eniehack%2Fphpunit-primer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eniehack%2Fphpunit-primer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eniehack%2Fphpunit-primer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eniehack%2Fphpunit-primer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eniehack","download_url":"https://codeload.github.com/eniehack/phpunit-primer/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247574097,"owners_count":20960495,"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","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":[],"created_at":"2024-10-10T01:20:27.401Z","updated_at":"2025-04-07T00:53:56.972Z","avatar_url":"https://github.com/eniehack.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+title: PHPUnit Primer\n#+options: toc:nil\n\n* PHPUnit Primer\n\na repository for workshop to learn how to use PHPUnit, for nikkiame developer.\n\n** 対象とする人\n\n- PHP の経験が少ない人\n- テストの経験が少ない人\n\n** 流れ\n1. =git clone https://github.com/eniehack/phpunit-primer.git= を実行する\n2. =cd phpunit-primer=\n3. =composer install=\n4. =./vendor/bin/phpunit=\n5. ~src/Sample/Sample.php~ と ~tests/Sample/SampleTest.php~ を見比べて、テストの書き方をなんとなく感じる\n6. 各仕様(~src/*/README~)ごとに実装する\n\n** 意識すること\n\n- Red-Green のサイクルを回す\n- 小さく生んで大きく育てる\n  - テストは最小限に\n    - クリアしたら、テストを 1 つ加えるを繰り返す\n  - 実装も、テストをパスできる程度(最小限)に\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feniehack%2Fphpunit-primer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feniehack%2Fphpunit-primer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feniehack%2Fphpunit-primer/lists"}