O'Reilly logo

Learning FuelPHP for Effective PHP Development by Ross Tweedie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unit testing

No modern framework would be complete without the ability to test the application code and functionality. FuelPHP has been built with this in mind and, thus, includes tests and test cases based on the PHPUnit testing framework.

So what is unit testing?

Unit tests are automated tests written to check whether or not the units of functionality (methods and functions) are working as expected. The tests typically test whether or not, for a given input, the output is correct, treating the functions as a black box to ensure that the internal logic works.

Since unit testing is automated, it's easy to ensure that the recent code changes don't break other functionality. It also allows for the use of a continuous integration server such as Jenkins ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required