Chapter 10. Testing the Project
All programmers do some kind of testing when they are writing code. You generally have an idea of what is going on in a particular script based on the output. For example, suppose you have a function named sum()
that accepts two values and returns the sum of those values. If you pass in the values 3 and 2 and the returned value is 6, you know that something is wrong and probably assume that the values are being multiplied instead of being added.
The difference between simply running a script and running a unit test is that the unit test can be automated and calibrated. In general, unit tests are more reliable and standardized because they have more thought put into them and are usually designed to cover all, or at ...
Get Zend Studio™ for Eclipse Developer’s Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.