public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
Document the test runner in scaffold too
bergie (author)
Thu Apr 10 07:20:14 -0700 2008
commit  88570ccedde34071c616d31d48dbe2faba9199c8
tree    5f2cd7686df0bd9f1d64f903f7a332f3a4cf5dc3
parent  f3f8d86d39f94ed751a5b179e503b77b132c867c
...
6
7
8
9
 
 
10
11
12
...
15
16
17
 
 
 
 
 
18
19
20
...
36
37
38
39
 
 
40
41
42
43
...
6
7
8
 
9
10
11
12
13
...
16
17
18
19
20
21
22
23
24
25
26
...
42
43
44
 
45
46
47
48
49
50
0
@@ -6,7 +6,8 @@
0
  * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
0
  */
0
 
0
-if (!defined('PHPUnit_MAIN_METHOD')) {
0
+if (!defined('PHPUnit_MAIN_METHOD'))
0
+{
0
     define('PHPUnit_MAIN_METHOD', '${component}_tests_all::main');
0
 }
0
 
0
@@ -15,6 +16,11 @@ require_once('PHPUnit/TextUI/TestRunner.php');
0
 
0
 require_once('tests/helpers.php');
0
 
0
+/**
0
+ * Runner for all tests in the component
0
+ *
0
+ * @package ${component}
0
+ */
0
 class ${component}_tests_all
0
 {
0
     public static function main()
0
@@ -36,7 +42,8 @@ class ${component}_tests_all
0
     }
0
 }
0
  
0
-if (PHPUnit_MAIN_METHOD == '${component}_tests_all::main') {
0
+if (PHPUnit_MAIN_METHOD == '${component}_tests_all::main')
0
+{
0
     ${component}_tests_all::main();
0
 }
0
 ?>
0
\ No newline at end of file

Comments

    No one has commented yet.