concept of how we might pass params to the test script
This commit is contained in:
parent
6dd9bddc71
commit
70ebe0d9af
@ -114,10 +114,23 @@ class MyReporter extends HtmlReporter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (TextReporter::inCli()) {
|
if (TextReporter::inCli()) {
|
||||||
|
if ($argc == 4)
|
||||||
|
{
|
||||||
|
$dsn = $argv[1];
|
||||||
|
$username = $argv[2];
|
||||||
|
$password = $argv[3];
|
||||||
|
}
|
||||||
exit ($test->run(new TextReporter()) ? 0 : 1);
|
exit ($test->run(new TextReporter()) ? 0 : 1);
|
||||||
|
} else {
|
||||||
|
if (isset($_POST))
|
||||||
|
{
|
||||||
|
$dsn = $_POST['dsn'];
|
||||||
|
$username = $_POST['username'];
|
||||||
|
$password = $_POST['password'];
|
||||||
}
|
}
|
||||||
$test->run(new MyReporter());
|
$test->run(new MyReporter());
|
||||||
$output = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
$cache = Doctrine_Manager::getInstance()->getCurrentConnection()->getCacheHandler();
|
$cache = Doctrine_Manager::getInstance()->getCurrentConnection()->getCacheHandler();
|
||||||
if(isset($cache)) {
|
if(isset($cache)) {
|
||||||
@ -158,6 +171,11 @@ if(isset($cache)) {
|
|||||||
<th>Password</th>
|
<th>Password</th>
|
||||||
<td><input type="text" name="password" /></td>
|
<td><input type="text" name="password" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
<td><input type="submit" name="submit" /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</form>
|
</form>
|
||||||
<h3>Tests</h3>
|
<h3>Tests</h3>
|
||||||
<pre>
|
<pre>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user