Living your Pest file
summary
Claims that Pest is more than PHPUnit sugar and shows concrete demos: a ParrotCon signup app with email-must-contain-"parrot" validation and a parrot-captcha expecting 10 birds, one-liner higher-order tests that replace closures, shared and combined data sets that explode into Cartesian products (examples go from 3 tests to 18 then 38), the expectation API and higher-order expectations for concise model assertions, a fake form-request generator in progress, and all examples run via Laravel php artisan test and visibly pass.
AI-written summary · about
chapters (14)
- 0:00Pest introduction and benefits
- 1:12ParrotCon demo and basics
- 4:04Testing GET routes 200
- 5:06Higher-order tests in Pest
- 6:09Laravel plugin auto descriptions
- 7:11Validation testing with data sets
- 9:39Shared data sets across tests
- 11:03Edge case data sets combined
- 14:15Expectations API cleaner assertions
- 18:04Eloquent higher-order expectations
- 20:10Fake request data for forms
- 20:51Megatest all Pest features
- 23:18Pest learning resources
- 24:44Q&A
related talks
49mIntroducing PEST: a delightful PHP Testing Framework
38mPest 2 - Summer of Spice
29mEffective tests and testing effectively
43mBeyond Pester 103: Applying a Testing Mindset
46mUnit Testing by Example
36mLiving peacefully with Laravel
33mSo you think you know PHPUnit?
50mBuilding Testable PHP Applications
