Posts tagged PHPUnit
So that’s the end of this document for how to update your system to handle the new way that we can develop applications. Hopefully you found it informative. Any changes please give me a shout at PHPUnitTutorial at creedscorner dot com.
Currently we have it so that if you were doing only backend code development, you would be set. However in the web world that is PHP, being only a back end developer is a rare task. Sooner or later (usually sooner) you’re going to have to test front end code as well. Wouldn’t it be great if you could do tests on front end code as well? With that in mind, the folks at Selenium have developed a tool where you can have testing code developed for you! Let’s give it a whirl.
Now that we have PHPUnit installed, what do we do with it? Well first we’ll need to write a test script so we can test it against our pages and see if they’re doing what it is that we expect them to do. Here is a super simple example of a page that we’ll be testing against for this example:
One of the things that developers love to hate has to be testing their code. Any process that can make this part of the development life cycle as short and painless as possible is bound to be embraced by coders. If only there was a way where you could just write a test for the various scripts that a PHP application would have and save it so that any changes could be tested with just a click of a button?