Growing the PHP Core – One Test at a Time
summary
Claim: contribute to PHP core by writing tests without C. Shows cloning PHP from GitHub, compiling, running make test, and writing PHPT files using the phpt file format to exercise output-compression behavior (Accept-Encoding, zlib.output_compression ini). Runs ~11,891 tests in ~35 seconds with 99.7% succeeded and two failures, diagnoses a copy‑on‑write superglobal issue, injects HTTP_ACCEPT_ENCODING via environment to avoid gzip binary output, opens a pull request that lands and shows coverage.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 0:31Getting started with testing
- 3:07Compiling and running tests
- 7:54Anatomy of a PHPT test
- 11:12Finding bugs and test targets
- 13:52Writing and debugging a test
- 25:37The value of contribution
- 29:47Q&A and closing
related talks
33mGrowing the PHP Core — One Test at a Time
38mGrowing the PHP Core One test at a Time
28mGrowing the PHP Core – One Test at a Time
05mInterview – Gina Peter Banyard
45m30 Years of PHP, 25 Years of Testing: A Journey Through Code and Community
50mBuilding Testable PHP Applications
58mTesting Complex Applications for PHP7
58mObjects, Testing and Responsibility
