From 5f0b7e989e92d31cf754da20504753a002e23ed9 Mon Sep 17 00:00:00 2001 From: jgen Date: Mon, 17 Feb 2014 01:44:54 -0500 Subject: [PATCH] PHP's getopt function on allows single character arguments. --- .travis.yml | 2 +- tests/simple_test.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2061ee66..1c463402 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ before_script: - if [[ "$DB" == "mysql" ]]; then mysql -e "create database shimmie;" -uroot; fi - chmod -R 777 . -script: php tests/simple_test.php -database $DB -url http://127.0.0.1/ +script: php tests/simple_test.php -d $DB -u http://127.0.0.1/ # configure notifications (email, IRC, campfire etc) #notifications: diff --git a/tests/simple_test.php b/tests/simple_test.php index 777d2c5a..65d785ba 100644 --- a/tests/simple_test.php +++ b/tests/simple_test.php @@ -4,12 +4,12 @@ require_once('lib/simpletest/autorun.php'); require_once('lib/simpletest/unit_tester.php'); require_once('lib/simpletest/reporter.php'); -class ShimmieTestCase extends UnitTestCase { +class ShimmieSimpleTestCase extends UnitTestCase { var $options; function ShimmieTestCase() { - $this->options = getopt("database:url:"); + $this->options = getopt("d:u:"); } function testOptions() {