Skip to content

Commit f108bd1

Browse files
authored
Merge pull request #9 from SimonFrings/phpunit
Add PHPUnit to require-dev
2 parents 8ff0488 + a6a9437 commit f108bd1

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/vendor
2+
/composer.lock

.travis.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
language: php
2-
php:
3-
- 5.3
4-
- 5.6
5-
- hhvm
2+
3+
# lock distro so new future defaults will not break the build
4+
dist: trusty
5+
6+
jobs:
7+
include:
8+
- php: 5.3
9+
dist: precise
10+
- php: 5.6
11+
- php: hhvm-3.18
12+
allow_failures:
13+
- php: hhvm-3.18
14+
615
install:
716
- composer install --prefer-source --no-interaction
17+
818
script:
9-
- phpunit --coverage-text
19+
- vendor/bin/phpunit --coverage-text

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ You probably don't want to use this if
6767

6868
## Install
6969

70-
The recommended way to install this library is [through composer](http://getcomposer.org). [New to composer?](http://getcomposer.org/doc/00-intro.md)
70+
The recommended way to install this library is [through Composer](https://getcomposer.org/).
71+
[New to Composer?](https://getcomposer.org/doc/00-intro.md)
7172

7273
```JSON
7374
{
@@ -77,6 +78,21 @@ The recommended way to install this library is [through composer](http://getcomp
7778
}
7879
```
7980

81+
## Tests
82+
83+
To run the test suite, you first need to clone this repo and then install all
84+
dependencies [through Composer](https://getcomposer.org):
85+
86+
```bash
87+
$ composer install
88+
```
89+
90+
To run the test suite, go to the project root and run:
91+
92+
```bash
93+
$ php vendor/bin/phpunit
94+
```
95+
8096
## License
8197

8298
MIT

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
},
1616
"require": {
1717
"php": ">=5.3"
18+
},
19+
"require-dev": {
20+
"phpunit/phpunit": "^4.8.35"
1821
}
1922
}

0 commit comments

Comments
 (0)