1
0
mirror of https://github.com/danbee/neompc synced 2025-03-04 08:39:10 +00:00
neompc/lib/smarty/unit_test
2006-08-02 09:03:37 +00:00
..
configs Initial import. 2006-08-02 09:03:37 +00:00
templates Initial import. 2006-08-02 09:03:37 +00:00
config.php Initial import. 2006-08-02 09:03:37 +00:00
README Initial import. 2006-08-02 09:03:37 +00:00
smarty_unit_test_gui.php Initial import. 2006-08-02 09:03:37 +00:00
smarty_unit_test.php Initial import. 2006-08-02 09:03:37 +00:00
test_cases.php Initial import. 2006-08-02 09:03:37 +00:00

Smarty Unit Testing
-------------------

Smarty unit tests require the PEAR PHPUnit
package to be installed. See if you have that
installed with the following command:

$> pear list

If you don't see PHPUnit, install with this:

$> pear install PHPUnit

Edit the config.php file,
be sure everything is defined correctly.

Be sure the following directories are present:

templates
configs
templates_c (writable)
cache (writable)

Then run from the command line:
php -q smarty_unit_test.php

Or from the web browser:
http://www.your_domain.com/path/to/smarty_unit_test_gui.php

This will run a unit test for every component
of Smarty and dump the results. All should pass
with flying colors. :)