·
9 min
How to Mock HTTP Requests in PHP Tests
Learn to mock HTTP requests in PHP tests with Guzzle MockHandler and Laravel Http::fake for fast, deterministic, offline test suites.
5 Articles
Learn to mock HTTP requests in PHP tests with Guzzle MockHandler and Laravel Http::fake for fast, deterministic, offline test suites.
Set up Laravel GitHub Actions CI/CD from scratch: a full ci.yml with PHP, MySQL service, caching, and php artisan test explained line by line.
Learn to write testable PHP code without a framework: dependency injection, injecting time and randomness, and a plain PHPUnit test.
A practical guide to evaluate LLM output: golden datasets, deterministic checks, LLM-as-judge, human review, and regression testing.
A practical Pest vs PHPUnit comparison for Laravel in 2026: syntax, expectations, datasets, plugins, and which testing tool I'd actually pick.