Skip to content

Commit 0ceb9e4

Browse files
authored
Merge pull request #23 from clue-labs/tests
Add PHPUnit to require-dev
2 parents ed70f8d + 8aae6d6 commit 0ceb9e4

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
language: php
2+
23
php:
34
- 5.3
45
- 5.6
56
- hhvm
7+
68
install:
79
- composer install --prefer-source --no-interaction
10+
811
script:
9-
- phpunit --coverage-text
12+
- vendor/bin/phpunit --coverage-text

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Lightweight library that eases integrating async components built for
1313
* [awaitAny()](#awaitany)
1414
* [awaitAll()](#awaitall)
1515
* [Install](#install)
16+
* [Tests](#tests)
1617
* [License](#license)
1718

1819
## Introduction
@@ -202,6 +203,21 @@ $ composer require clue/block-react:^1.1
202203

203204
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
204205

206+
## Tests
207+
208+
To run the test suite, you first need to clone this repo and then install all
209+
dependencies [through Composer](http://getcomposer.org):
210+
211+
```bash
212+
$ composer install
213+
```
214+
215+
To run the test suite, go to the project root and run:
216+
217+
```bash
218+
$ php vendor/bin/phpunit
219+
```
220+
205221
## License
206222

207223
MIT

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
"react/event-loop": "0.4.*|0.3.*",
1919
"react/promise": "~2.1|~1.2",
2020
"react/promise-timer": "~1.0"
21+
},
22+
"require-dev": {
23+
"phpunit/phpunit": "^5.0 || ^4.8"
2124
}
2225
}

0 commit comments

Comments
 (0)