O'Reilly logo

Building a Web Application with PHP and MariaDB: A Reference Guide by Sai Srinivas Sriparasa

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

Now that we understand exception handling, this is a good place to take a look at the concept of unit testing. As the name suggests, unit testing refers to testing the application one unit at a time. A unit is an arbitrary term but it is always advised to divide the code into the smallest independent working fragment and test that unit. In this section, we will briefly go over automated unit tests. Automated unit testing makes the process of testing the functionality easier as the application grows. Let us take the example of a student portal. We begin by building a simple portal that will allow us to add a student. Once we provide the portal to add students, the users of the portal would need an interface to view the student information ...

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