Skip to content

Commit af83167

Browse files
committed
Add PHPUnit to require-dev
1 parent 16e4511 commit af83167

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

.travis.yml

Lines changed: 5 additions & 2 deletions
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:
7-
- composer install --prefer-source --no-interaction
9+
- composer install --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
@@ -17,6 +17,7 @@ A trivial implementation of timeouts for `Promise`s, built on top of [React PHP]
1717
* [Reject cancellation](#reject-cancellation)
1818
* [TimeoutException](#timeoutexception)
1919
* [Install](#install)
20+
* [Tests](#tests)
2021
* [License](#license)
2122

2223
## Usage
@@ -325,6 +326,21 @@ $ composer require react/promise-timer:^1.1.1
325326

326327
More details and upgrade guides can be found in the [CHANGELOG](CHANGELOG.md).
327328

329+
## Tests
330+
331+
To run the test suite, you first need to clone this repo and then install all
332+
dependencies [through Composer](http://getcomposer.org):
333+
334+
```bash
335+
$ composer install
336+
```
337+
338+
To run the test suite, go to the project root and run:
339+
340+
```bash
341+
$ php vendor/bin/phpunit
342+
```
343+
328344
## License
329345

330346
MIT

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@
2121
"php": ">=5.3",
2222
"react/event-loop": "^0.4 || ^0.3.5",
2323
"react/promise": "~2.1|~1.2"
24+
},
25+
"require-dev": {
26+
"phpunit/phpunit": "^4.8"
2427
}
2528
}

0 commit comments

Comments
 (0)