Simple Test: Testing Your Code (Part 1)Tag: simple test, test unit Category:post: 11 Nov 2007 read: 1,103 It is important to test your code. You will release stress by doing good testing your code. Imagine, you almost done your complicated application. But, oh no.. Your boss find a bug. You must trace all of your code to find this bug. It will better you test every part of your application. Amongst software testing tools, a unit tester is the one closest to the developer. In the context of agile development the test code sits right next to the source code as both are written simultaneously. In this context SimpleTest aims to be a complete PHP developer test solution and is called "Simple" because it should be easy to use and extend. You can download simpletest at www.simpletest.org. After download, you can follow this tutorial:
Point your browser to http://localhost/test/test.php, you will get:
Why you still get error? Your function do not return any value:
So, your following this will get false:
Now, change and add return at your interest_per_yer():
Reload page again:
| ||
| | Give Your Opinion | Recommend |
|

