From 15df1e0e0d5d07bb92748d972c41e0a570472801 Mon Sep 17 00:00:00 2001 From: Eher Date: Sun, 2 Dec 2012 21:40:34 -0200 Subject: [PATCH] Create test skeleton with PHPUnit and Travis-CI --- .travis.yml | 9 +++++++++ composer.json | 3 +++ phpunit.xml.dist | 7 +++++++ test/Eher/OAuth/RequestTest.php | 10 ++++++++++ 4 files changed, 29 insertions(+) create mode 100644 .travis.yml create mode 100644 phpunit.xml.dist create mode 100644 test/Eher/OAuth/RequestTest.php diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f64de41 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: php + +php: + - 5.3 + - 5.4 + +before_script: + - wget -c http://getcomposer.org/composer.phar + - php composer.phar install diff --git a/composer.json b/composer.json index b5ad34f..29bf4d9 100644 --- a/composer.json +++ b/composer.json @@ -10,5 +10,8 @@ "psr-0": { "Eher\\OAuth": "src" } + }, + "require-dev": { + "eher/phpunit": "1.6" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..9735ad4 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,7 @@ + + + + test + + + diff --git a/test/Eher/OAuth/RequestTest.php b/test/Eher/OAuth/RequestTest.php new file mode 100644 index 0000000..f3c6847 --- /dev/null +++ b/test/Eher/OAuth/RequestTest.php @@ -0,0 +1,10 @@ +