From 4b6b283f029ec0c74b3e479e7168514daa79a987 Mon Sep 17 00:00:00 2001 From: jgen Date: Mon, 17 Feb 2014 15:00:04 -0500 Subject: [PATCH] Can we assume that the server is 127.0.0.1? --- .travis.yml | 2 +- tests/test_install.php | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 tests/test_install.php diff --git a/.travis.yml b/.travis.yml index f7fcc449..9802a760 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ before_script: # (permissions of 777 are bad, but it definitely works) - chmod -R 777 . -script: php tests/simple_test.php -d $DB -u http://127.0.0.1/ +script: php tests/test_install.php -d $DB # configure notifications (email, IRC, campfire etc) #notifications: diff --git a/tests/test_install.php b/tests/test_install.php new file mode 100644 index 00000000..346cb1f0 --- /dev/null +++ b/tests/test_install.php @@ -0,0 +1,27 @@ +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); + } + +}