~ubuntu-branches/ubuntu/gutsy/smarty/gutsy-security

« back to all changes in this revision

Viewing changes to unit_test/README

  • Committer: Bazaar Package Importer
  • Author(s): Dimitri Fontaine
  • Date: 2005-03-29 11:53:20 UTC
  • mfrom: (0.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050329115320-g3rvndgnn75ogm35
Tags: 2.6.8-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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. :)