Skip to content

Commit e72ad41

Browse files
committed
Add PHPUnit to require-dev
1 parent bb87842 commit e72ad41

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
@@ -7,6 +7,7 @@ Streaming terminal emulator, built on top of React PHP
77
* [Usage](#usage)
88
* [ControlCodeParser](#controlcodeparser)
99
* [Install](#install)
10+
* [Tests](#tests)
1011
* [License](#license)
1112
* [More](#more)
1213

@@ -113,6 +114,21 @@ $ composer require clue/term-react:^0.1
113114

114115
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
115116

117+
## Tests
118+
119+
To run the test suite, you first need to clone this repo and then install all
120+
dependencies [through Composer](http://getcomposer.org):
121+
122+
```bash
123+
$ composer install
124+
```
125+
126+
To run the test suite, go to the project root and run:
127+
128+
```bash
129+
$ php vendor/bin/phpunit
130+
```
131+
116132
## License
117133

118134
MIT

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"react/stream": "^0.4 || ^0.3"
1919
},
2020
"require-dev": {
21+
"phpunit/phpunit": "^4.8",
2122
"react/event-loop": "^0.4 || ^0.3"
2223
}
2324
}

0 commit comments

Comments
 (0)