-
Book Overview & Buying
-
Table Of Contents
Expert PHP 5 Tools
By :
The following sections briefly look at how to approach testing in general. The basic question is whether it is best to focus on how the code is supposed to behave or whether the tester should be aware of what the code is actually doing. That is to say, should you test the code from the outside with the actual implementation hidden or should you be aware of how the programmer implemented the required functionality? As we will see, both approaches have their pros and cons and in the end it is possible for you to choose your own combination, as the two sides are not mutually exclusive.
It might not be obvious at first, but considering the general approach first will help us in understanding how others might be testing our code. It also helps us when we get into the heart of this chapter and start writing unit tests.
Black box testing treats the code that is being tested as a complete unknown. The tester only needs to know how the code is supposed to behave, not how...
Change the font size
Change margin width
Change background colour