1
0
mirror of synced 2024-12-14 07:06:04 +03:00

concept of how we might pass params to the test script

This commit is contained in:
pookey 2006-09-25 08:42:15 +00:00
parent 6dd9bddc71
commit 70ebe0d9af

View File

@ -114,10 +114,23 @@ class MyReporter extends HtmlReporter {
}
if (TextReporter::inCli()) {
if ($argc == 4)
{
$dsn = $argv[1];
$username = $argv[2];
$password = $argv[3];
}
exit ($test->run(new TextReporter()) ? 0 : 1);
} else {
if (isset($_POST))
{
$dsn = $_POST['dsn'];
$username = $_POST['username'];
$password = $_POST['password'];
}
$test->run(new MyReporter());
$output = ob_get_clean();
}
$test->run(new MyReporter());
$output = ob_get_clean();
/**
$cache = Doctrine_Manager::getInstance()->getCurrentConnection()->getCacheHandler();
if(isset($cache)) {
@ -158,6 +171,11 @@ if(isset($cache)) {
<th>Password</th>
<td><input type="text" name="password" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="submit" /></td>
</tr>
</table>
</form>
<h3>Tests</h3>
<pre>