From 621667625a2afd25c6edaedb9767911364320df3 Mon Sep 17 00:00:00 2001 From: Nenad Ticaric Date: Tue, 16 Aug 2016 12:30:20 +0200 Subject: [PATCH] add tests --- .gitignore | 7 +++++++ .travis.yml | 12 ++++++++++++ LICENSE.txt | 21 +++++++++++++++++++++ tests/TNTSearchEngineTest.php | 30 ++++++++++++++++++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 LICENSE.txt create mode 100644 tests/TNTSearchEngineTest.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7c436c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +/vendor +/.env +composer.phar +composer.lock +.DS_Store +Thumbs.db +/phpunit.xml \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7d1272f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: php + +php: + - 5.6 + - 7.0 + - 7.1 + +sudo: false + +install: travis_retry composer install --no-interaction --prefer-source + +script: vendor/bin/phpunit --verbose \ No newline at end of file diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..6eb3dac --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/tests/TNTSearchEngineTest.php b/tests/TNTSearchEngineTest.php new file mode 100644 index 0000000..f73e89f --- /dev/null +++ b/tests/TNTSearchEngineTest.php @@ -0,0 +1,30 @@ + 1]; + } +} \ No newline at end of file