diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..03ea145 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: php +php: + - 5.5 + - 5.4 + - 5.3 \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..568c34c --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,7 @@ + + + + test + + + \ No newline at end of file diff --git a/test/baseTest.php b/test/baseTest.php new file mode 100644 index 0000000..78b6e35 --- /dev/null +++ b/test/baseTest.php @@ -0,0 +1,14 @@ +assertEquals ("?db=0", addURLParameter ("?", "db", "0")); + $this->assertEquals ("?key=value&db=0", addURLParameter ("?key=value", "db", "0")); + $this->assertEquals ("?key=value&otherKey=&db=0", addURLParameter ("?key=value&otherKey", "db", "0")); + } +} \ No newline at end of file diff --git a/test/config_test.php b/test/config_test.php new file mode 100644 index 0000000..d2f03ce --- /dev/null +++ b/test/config_test.php @@ -0,0 +1,4 @@ +