·
8 min
How to Write Testable PHP Code (Without a Framework)
Learn to write testable PHP code without a framework: dependency injection, injecting time and randomness, and a plain PHPUnit test.
2 Articles
Learn to write testable PHP code without a framework: dependency injection, injecting time and randomness, and a plain PHPUnit test.
A practical Pest vs PHPUnit comparison for Laravel in 2026: syntax, expectations, datasets, plugins, and which testing tool I'd actually pick.