PHP's getopt function on allows single character arguments.
This commit is contained in:
parent
3cb79f0e8a
commit
5f0b7e989e
2 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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() {
|
||||
|
|
Reference in a new issue