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