2014-02-17 15:00:04 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once('lib/simpletest/autorun.php');
|
|
|
|
require_once('lib/simpletest/unit_tester.php');
|
2014-02-17 15:03:27 -05:00
|
|
|
require_once('lib/simpletest/web_tester.php');
|
2014-02-17 15:00:04 -05:00
|
|
|
require_once('lib/simpletest/reporter.php');
|
|
|
|
|
|
|
|
class ShimmieSimpleTestCase extends WebTestCase {
|
|
|
|
var $options;
|
|
|
|
var $database;
|
|
|
|
|
|
|
|
function ShimmieTestCase() {
|
|
|
|
$this->options = getopt("d:");
|
|
|
|
$this->database = $this->options["d"];
|
|
|
|
}
|
|
|
|
|
|
|
|
function testOptions() {
|
|
|
|
print_r($this->options);
|
|
|
|
$this->assertNotNull($this->database);
|
|
|
|
}
|
|
|
|
|
|
|
|
function installShimmie()
|
|
|
|
{
|
|
|
|
$this->get('http://127.0.0.1/');
|
|
|
|
$this->assertResponse(200);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|