{"adoption": {"forks": 60, "observed_at": "2026-08-28T04:03:58.807691+00:00", "stars": 1204}, "canonical_url": "https://ross.abutalabs.com/products/unit-testing-tips", "card": {"archived": false, "artifact_type": "learning-resource", "description": "Unit testing tips by examples in PHP", "domain": ["testing", "tutorials", "developer-tools"], "enriched": true, "function": ["testing"], "health_score": 74, "homepage": "https://testing-tips.sarvendev.com/", "language": "HTML", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["sarven/unit-testing-tips"], "name": "sarven/unit-testing-tips", "platform": ["php"], "pushed_at": "2026-06-26T11:34:48+00:00", "repo": "sarven/unit-testing-tips", "stars": 1204, "tags": ["phpunit", "unit-testing", "tdd", "best-practices", "test-doubles", "ebook"], "topics": ["php", "phpunit", "unit-testing", "testing", "best-practices", "phpunit-tests", "tdd", "tests", "unit-tests"], "urls": [], "use_cases": ["learn how to write good unit tests in PHP", "understand test doubles and mocks in PHPUnit", "improve unit test naming and structure with the AAA pattern", "learn TDD best practices by example", "find tips for writing maintainable PHPUnit tests"], "what_it_is": "A free guide and ebook teaching unit testing best practices in PHP through practical examples with PHPUnit. It covers topics like test doubles, naming conventions, the AAA pattern, object mother, and builder patterns.", "when_to_avoid": ["you need a testing framework or tool rather than educational material", "you work in a language other than PHP", "you need advanced or framework-specific testing documentation"], "when_to_choose": ["you are a PHP developer wanting to learn or improve unit testing skills", "you want practical, example-driven guidance on PHPUnit and TDD", "you need a free reference on test doubles and test design patterns"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/unit-testing-tips", "repo": "sarven/unit-testing-tips", "role": "main", "score": 72}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:19:40.868338+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b67d47d9fca31d317a606ea704a98e7e13a4e185f5e82c76bae2000da44ceb90", "fetched_at": "2026-08-28T04:03:58.807691+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sarven/unit-testing-tips"}, {"content_hash": "49a315c6f68209d8056d93478fccb2f2487dcd5524c728cf7989459b9c2b86b5", "fetched_at": "2026-08-29T12:27:17.286596+00:00", "kind": "homepage", "missing": false, "url": "https://testing-tips.sarvendev.com/"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:19:40.868338+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b67d47d9fca31d317a606ea704a98e7e13a4e185f5e82c76bae2000da44ceb90", "fetched_at": "2026-08-28T04:03:58.807691+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sarven/unit-testing-tips"}, {"content_hash": "49a315c6f68209d8056d93478fccb2f2487dcd5524c728cf7989459b9c2b86b5", "fetched_at": "2026-08-29T12:27:17.286596+00:00", "kind": "homepage", "missing": false, "url": "https://testing-tips.sarvendev.com/"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:19:40.868338+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b67d47d9fca31d317a606ea704a98e7e13a4e185f5e82c76bae2000da44ceb90", "fetched_at": "2026-08-28T04:03:58.807691+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sarven/unit-testing-tips"}, {"content_hash": "49a315c6f68209d8056d93478fccb2f2487dcd5524c728cf7989459b9c2b86b5", "fetched_at": "2026-08-29T12:27:17.286596+00:00", "kind": "homepage", "missing": false, "url": "https://testing-tips.sarvendev.com/"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:19:40.868338+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b67d47d9fca31d317a606ea704a98e7e13a4e185f5e82c76bae2000da44ceb90", "fetched_at": "2026-08-28T04:03:58.807691+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sarven/unit-testing-tips"}, {"content_hash": "49a315c6f68209d8056d93478fccb2f2487dcd5524c728cf7989459b9c2b86b5", "fetched_at": "2026-08-29T12:27:17.286596+00:00", "kind": "homepage", "missing": false, "url": "https://testing-tips.sarvendev.com/"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:19:40.868338+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b67d47d9fca31d317a606ea704a98e7e13a4e185f5e82c76bae2000da44ceb90", "fetched_at": "2026-08-28T04:03:58.807691+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sarven/unit-testing-tips"}, {"content_hash": "49a315c6f68209d8056d93478fccb2f2487dcd5524c728cf7989459b9c2b86b5", "fetched_at": "2026-08-29T12:27:17.286596+00:00", "kind": "homepage", "missing": false, "url": "https://testing-tips.sarvendev.com/"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:19:40.868338+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b67d47d9fca31d317a606ea704a98e7e13a4e185f5e82c76bae2000da44ceb90", "fetched_at": "2026-08-28T04:03:58.807691+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sarven/unit-testing-tips"}, {"content_hash": "49a315c6f68209d8056d93478fccb2f2487dcd5524c728cf7989459b9c2b86b5", "fetched_at": "2026-08-29T12:27:17.286596+00:00", "kind": "homepage", "missing": false, "url": "https://testing-tips.sarvendev.com/"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.807691+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:19:40.868338+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b67d47d9fca31d317a606ea704a98e7e13a4e185f5e82c76bae2000da44ceb90", "fetched_at": "2026-08-28T04:03:58.807691+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sarven/unit-testing-tips"}, {"content_hash": "49a315c6f68209d8056d93478fccb2f2487dcd5524c728cf7989459b9c2b86b5", "fetched_at": "2026-08-29T12:27:17.286596+00:00", "kind": "homepage", "missing": false, "url": "https://testing-tips.sarvendev.com/"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:19:40.868338+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b67d47d9fca31d317a606ea704a98e7e13a4e185f5e82c76bae2000da44ceb90", "fetched_at": "2026-08-28T04:03:58.807691+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sarven/unit-testing-tips"}, {"content_hash": "49a315c6f68209d8056d93478fccb2f2487dcd5524c728cf7989459b9c2b86b5", "fetched_at": "2026-08-29T12:27:17.286596+00:00", "kind": "homepage", "missing": false, "url": "https://testing-tips.sarvendev.com/"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:19:40.868338+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b67d47d9fca31d317a606ea704a98e7e13a4e185f5e82c76bae2000da44ceb90", "fetched_at": "2026-08-28T04:03:58.807691+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sarven/unit-testing-tips"}, {"content_hash": "49a315c6f68209d8056d93478fccb2f2487dcd5524c728cf7989459b9c2b86b5", "fetched_at": "2026-08-29T12:27:17.286596+00:00", "kind": "homepage", "missing": false, "url": "https://testing-tips.sarvendev.com/"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:19:40.868338+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b67d47d9fca31d317a606ea704a98e7e13a4e185f5e82c76bae2000da44ceb90", "fetched_at": "2026-08-28T04:03:58.807691+00:00", "kind": "readme", "missing": false, "url": "https://github.com/sarven/unit-testing-tips"}, {"content_hash": "49a315c6f68209d8056d93478fccb2f2487dcd5524c728cf7989459b9c2b86b5", "fetched_at": "2026-08-29T12:27:17.286596+00:00", "kind": "homepage", "missing": false, "url": "https://testing-tips.sarvendev.com/"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 89, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2030, "days_push": 68, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 72, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}