n/oldblog
Archived
1
0
Fork 0
This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
oldblog/modules/include/smarty3/unit_test
2023-04-30 21:50:11 +02:00
..
configs initial import 2023-04-30 21:50:11 +02:00
templates initial import 2023-04-30 21:50:11 +02:00
config.php initial import 2023-04-30 21:50:11 +02:00
README initial import 2023-04-30 21:50:11 +02:00
smarty_unit_test.php initial import 2023-04-30 21:50:11 +02:00
smarty_unit_test_gui.php initial import 2023-04-30 21:50:11 +02:00
test_cases.php initial import 2023-04-30 21:50:11 +02: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. :)