Skip to content

Commit a105ba6

Browse files
committed
add unit testing
1 parent b336617 commit a105ba6

8 files changed

Lines changed: 5774 additions & 24 deletions

File tree

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
7+
[composer.json]
8+
indent_style = space
9+
indent_size = 4

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
language: php
2+
3+
php:
4+
- 5.6
5+
- 7.0
6+
- nightly
7+
8+
sudo: false
9+
10+
env:
11+
global:
12+
- PATH="$HOME/.composer/vendor/bin:$PATH"
13+
14+
cache:
15+
directories:
16+
- $HOME/.composer/cache
17+
18+
matrix:
19+
fast_finish: true
20+
include:
21+
- php: 5.6
22+
env: COMPOSER_FLAGS="--prefer-lowest"
23+
allow_failures:
24+
- php: nightly
25+
26+
before_install:
27+
- phpenv global 5.6
28+
29+
install:
30+
- mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d && echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
31+
- mkdir -p build/logs
32+
- composer global require satooshi/php-coveralls:@stable --no-update
33+
- composer global update --prefer-dist --no-interaction
34+
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
35+
36+
before_script:
37+
- composer require phpunit/phpunit
38+
39+
script:
40+
- vendor/bin/phpunit
41+
42+
after_script:
43+
- coveralls -v

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.2.2"
14+
"php": ">=5.6",
15+
"guzzlehttp/guzzle": "^6.2"
1516
},
1617
"autoload": {
1718
"classmap": ["src/"]

0 commit comments

Comments
 (0)