1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 07:54:24 +03:00
ifhub.club/engine/lib/external/Smarty-2.6.19/unit_test
Mzhelskiy Maxim 3e4be7be12
2009-08-18 09:10:14 +00:00
..
configs 2009-08-18 09:10:14 +00:00
templates 2009-08-18 09:10:14 +00:00
config.php 2009-08-18 09:10:14 +00:00
README 2009-08-18 09:10:14 +00:00
smarty_unit_test.php 2009-08-18 09:10:14 +00:00
smarty_unit_test_gui.php 2009-08-18 09:10:14 +00:00
test_cases.php 2009-08-18 09:10:14 +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. :)