diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4a9e27f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: php +php: +- 5.3 +- 5.4 +- 5.5 +- 5.6 +- 7.0 +- hhvm +matrix: + allow_failures: + - php: hhvm +before_script: composer update --dev +script: php vendor/phpunit/phpunit/phpunit.php \ No newline at end of file diff --git a/composer.json b/composer.json index 455be21..1911285 100644 --- a/composer.json +++ b/composer.json @@ -7,5 +7,16 @@ }, "autoload": { "psr-4": {"SimpleSAML\\Module\\authVHO\\": "lib"} + }, + "require-dev": { + "simplesamlphp/simplesamlphp": "1.14", + "phpunit/phpunit": "~3.7" + }, + "autoload-dev": { + "files": ["tests/_autoload_modules.php"] + }, + "support": { + "issues": "https://github.com/NIIF/simplesamlphp-module-authVHO/issues", + "source": "https://github.com/NIIF/simplesamlphp-module-authVHO" } } \ No newline at end of file diff --git a/lib/Auth/Process/RedirectTest.php b/lib/Auth/Process/RedirectTest.php deleted file mode 100644 index 8e55dc7..0000000 --- a/lib/Auth/Process/RedirectTest.php +++ /dev/null @@ -1,28 +0,0 @@ - $id)); - } - -} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..8a094a7 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,8 @@ + + + + + ./tests + + + \ No newline at end of file diff --git a/tests/Auth/Process/RedirectTest.php b/tests/Auth/Process/RedirectTest.php new file mode 100644 index 0000000..a24070d --- /dev/null +++ b/tests/Auth/Process/RedirectTest.php @@ -0,0 +1,33 @@ + $id)); + } +}