Pluf Framework

Review 3: improving testrunner

Created:2009-09-16 01:18:39 (3 years 8 months ago)
Updated:3 years 8 months ago
Author:Jakub Vitak
Commit:27c5d25f0308483699e1c57e1f2a2ca12a07485b
Description:improving testrunner

some big apps (like one mine) have separated sub-apps if you don't linke symlinks too much - like me - here is solution second solution is borrowing getopt code from migrate.php
Reviewers:No reviewers at the moment.
Files: b/src/testrunner.php (2 diffs)
 Archive Download the corresponding diff file
b/src/testrunner.php
OldNew
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
...
123
124
125
126
127
128
129
130
131
132
133
134
135
136
}
define('IN_UNIT_TESTS', true);
require 'Pluf.php';
Pluf::start($config);
$simple_test = Pluf::f('simple_test_path', false);
$created = array();
}
$test->run($reporter);
$mig->unInstall();
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
...
135
136
137
138
139
140
141
142
143
144
145
146
147
148
}
define('IN_UNIT_TESTS', true);
require 'Pluf.php';
try {
$paths = $app.'/../../www/path.php';
if (Pluf::fileExists($paths) == true) {
//set_include_path(get_include_path().PATH_SEPARATOR.$paths);
echo "! including '$paths'\n";
include $paths;
}
} catch (Exception $e) {
echo("!oopsy: '{$e->getMessage()}'\n");
}
Pluf::start($config);
$simple_test = Pluf::f('simple_test_path', false);
$created = array();
}
$test->run($reporter);
$mig->unInstall();