PHP on T R A X
Rapid Application Development Made Easy

root/trunk/trax/test/runtests.php

Revision 192, 1.9 kB (checked in by haas, 3 years ago)

working Pear install w/ tests

  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1 <?php
2 /**
3  *  Regression test for the {@link PHPonTrax} package
4  *
5  * (PHP 5)
6  *
7  * @package PHPonTraxTest
8  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9  * @copyright (c) Walter O. Haas 2006
10  * @version $Id$
11  * @author Walt Haas <haas@xmission.com>
12  */
13
14
15 //  Control order of tests
16 $tests = array(
17                //  TraxError used by ActiveRecordError, ActionControllerError
18                'TraxErrorTest.php',
19                'ActionControllerErrorTest.php',
20                'ActiveRecordErrorTest.php',
21                //  Inflector is used by many classes
22                'InflectorTest.php',
23                //  Router is used by ActionController
24                'RouterTest.php',
25                'ActionControllerTest.php',
26                //  ScaffoldController extends ActionController
27                'ScaffoldControllerTest.php',
28                //  ApplicationController extends ActionController
29                'ApplicationControllerTest.php',
30                'ActionMailerTest.php',
31                'ActiveRecordTest.php',
32                'ActiveRecordHelperTest.php',
33                'ApplicationMailerTest.php',
34                'AssetTagHelperTest.php',
35                'DateHelperTest.php',
36                'DispatcherTest.php',
37                'FormHelperTest.php',
38                'FormOptionsHelperTest.php',
39                'FormTagHelperTest.php',
40                'HelpersTest.php',
41                'InputFilterTest.php',
42                'JavaScriptHelperTest.php',
43                'SessionTest.php',
44                'TraxGeneratorTest.php',
45                'UrlHelperTest.php',
46                );
47
48 foreach ($tests as $test) {
49     passthru("phpunit $test",$rc);
50     if ($rc) {
51         echo "Test Failed!!!\n";
52         break;
53     }
54 }
55
56
57
58 // -- set Emacs parameters --
59 // Local variables:
60 // tab-width: 4
61 // c-basic-offset: 4
62 // c-hanging-comment-ender-p: nil
63 // indent-tabs-mode: nil
64 // End:
65 ?>
66
Note: See TracBrowser for help on using the browser.