Want to Try Writing Test Code?
summary
A hands-on workshop provides a runnable Laravel app with PHPUnit inside Docker Compose (App, DB, and PHPUnit containers) plus an init script. It walks through 12 testing exercises (8 essential) using the demo app (login, mypage, weather API, logout), with an answer branch and an estimated full run of 4–6 hours (possibly 7–8). Tools used are Laravel, PHPUnit, and Docker Compose.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:22What is test code?
- 3:06Why write test code?
- 5:34TC Practice repo intro
- 6:15Repository overview and setup
- 8:47Docker containers explained
- 10:14Practice questions and flow
- 13:23Writing test code basics
- 16:52Test case naming and structure
- 17:34Setup and teardown
- 18:16Assertions and logic
- 20:00Maintainable test tips
- 21:03Handling random values
- 22:26Avoiding flaky tests
- 23:09Session recap
- 24:39Q&A
