Skip to content

Commit f1818fc

Browse files
committed
Add PHPUnit to require-dev
1 parent 626ca5e commit f1818fc

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ install:
1414
- composer install --no-interaction
1515

1616
script:
17-
- phpunit --coverage-text
17+
- vendor/bin/phpunit --coverage-text

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Async, event-driven and UTF-8 aware console input & output (STDIN, STDOUT), buil
2121
* [Stdin](#stdin)
2222
* [Pitfalls](#pitfalls)
2323
* [Install](#install)
24+
* [Tests](#tests)
2425
* [License](#license)
2526
* [More](#more)
2627

@@ -554,6 +555,21 @@ $ composer require clue/stdio-react:^1.0
554555

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

558+
## Tests
559+
560+
To run the test suite, you first need to clone this repo and then install all
561+
dependencies [through Composer](http://getcomposer.org):
562+
563+
```bash
564+
$ composer install
565+
```
566+
567+
To run the test suite, go to the project root and run:
568+
569+
```bash
570+
$ php vendor/bin/phpunit
571+
```
572+
557573
## License
558574

559575
MIT

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"psr-4": { "Clue\\React\\Stdio\\": "src/" }
2525
},
2626
"require-dev": {
27+
"phpunit/phpunit": "^4.8",
2728
"clue/commander": "^1.2",
2829
"clue/arguments": "^2.0"
2930
}

0 commit comments

Comments
 (0)