Test Driven Development
Test Driven Development with PHPUnit
TDD is the future of web development. As web programming languages gain more functionality and become more advanced we as web developers must change the way we program/think.
Test driven development ( PHPUnit ) is one of those things that come around and you wonder how you ever programmed without it.
Check it out!
PHPUnit:
"Even good programmers make mistakes. The difference between a good programmer and a bad programmer is that the good programmer uses tests to detect his mistakes as soon as possible. The sooner you test for a mistake the greater your chance of finding it and the less it will cost to find and fix."
[PHPUnit Manual Excerpt]
http://www.phpunit.de/manual/current/en/automating-tests.html
[PHPUnit Manual]
http://www.phpunit.de/manual/current/en/
[Git Repository]
https://github.com/sebastianbergmann/phpunit/
Happy Testing!
Written by Jesse Reese
Related protips
Have a fresh tip? Share with Coderwall community!
PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.
Security insights from Cside