1. Start with atoum

You first need to install it, and then try to start your first test. But to understand how to do it, the best is to keep in mind the philosophy of atoum.

1.1. The philosophy of atoum

You need to write a test class for each tested class. When you want to test a value, you must:

  • indicate the type of this value (integer, decimal, array, String, etc.);
  • indicate what you are expecting the value to be (equal to, null, containing a substring, …).

1.2. Extension

atoum came with a set of extension you can use. To discover them, just go to the dedicated website.