Unit Testing by Example
summary
Concrete, runnable recipes and PHP examples that show what to assert and why: parses-from-CSV as an interface-first exercise, tests that catch a 0.1 quantity bug by round 0.1 to 1, a shipping rule that makes orders >= 40 get free shipping over 40 instead of always charging 15, tax assertions for Quebec rates, and guidance on coverage and cyclomatic complexity so tests for zero and multiple items reveal a hidden totaling bug. Expect tool suggestions like Karma Jasmine CasperJS and real deployable outcomes.
AI-written summary · about
chapters (6)
- 0:00Unit Testing by Example
- 25:22Step 4: before (TDD)
- 26:56Tips
- 28:29Recap
- 30:50Cyclomatic Complexity
- 31:01Execution Paths








