| ||
|
|
For our automated tests, we use PHPUnit (currently version 3.2.11). You can find good documentation on PHPUnit here. We have created some base classes to help use PHPUnit in TopazPort. Assuming you have the TopazPort SVN project on your machine, you already have PHPUnit (you are welcome to also install it through PEAR, but on some systems that's not possible).
Now you should be set to start testing. We keep our configuration files in the tests-php5/configs directory. You can look there for samples. The testDbHelper class provides a way of importing SQL data files into your test database. TopazPort_TestCase provides a base class that can initialize the database for you with the current structure. I would expect most tests to extend this class (or one of the others below). TopazPort_Objekts_TestCase provides a base class that has some functions for testing our Objekts.
|
|