| 1 | Smarty Unit Testing |
| 2 | ------------------- |
| 3 | |
| 4 | Smarty unit tests require the PEAR PHPUnit |
| 5 | package to be installed. See if you have that |
| 6 | installed with the following command: |
| 7 | |
| 8 | $> pear list |
| 9 | |
| 10 | If you don't see PHPUnit, install with this: |
| 11 | |
| 12 | $> pear install PHPUnit |
| 13 | |
| 14 | Edit the config.php file, |
| 15 | be sure everything is defined correctly. |
| 16 | |
| 17 | Be sure the following directories are present: |
| 18 | |
| 19 | templates |
| 20 | configs |
| 21 | templates_c (writable) |
| 22 | cache (writable) |
| 23 | |
| 24 | Then run from the command line: |
| 25 | php -q smarty_unit_test.php |
| 26 | |
| 27 | Or from the web browser: |
| 28 | http://www.your_domain.com/path/to/smarty_unit_test_gui.php |
| 29 | |
| 30 | This will run a unit test for every component |
| 31 | of Smarty and dump the results. All should pass |
| 32 | with flying colors. :) |