File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 11
11
sudo : false
12
12
13
13
install :
14
- - composer install --prefer-source --no-interaction
14
+ - COMPOSER_ROOT_VERSION=`git describe --abbrev=0` composer install --no-interaction
15
15
16
16
script :
17
17
- phpunit --coverage-text
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ and [`Stream`](https://github.com/reactphp/stream) components.
16
16
* [ ConnectionInterface] ( #connectioninterface )
17
17
* [ getRemoteAddress()] ( #getremoteaddress )
18
18
* [ Install] ( #install )
19
+ * [ Tests] ( #tests )
19
20
* [ License] ( #license )
20
21
21
22
## Quickstart example
@@ -144,6 +145,23 @@ $ composer require react/socket:^0.4.4
144
145
145
146
More details about version upgrades can be found in the [ CHANGELOG] ( CHANGELOG.md ) .
146
147
148
+ ## Tests
149
+
150
+ To run the test suite, you first need to clone this repo and then install all
151
+ dependencies [ through Composer] ( http://getcomposer.org ) .
152
+ Because the test suite contains some circular dependencies, you may have to
153
+ manually specify the root package version like this:
154
+
155
+ ``` bash
156
+ $ COMPOSER_ROOT_VERSION=` git describe --abbrev=0` composer install
157
+ ```
158
+
159
+ To run the test suite, you need PHPUnit. Go to the project root and run:
160
+
161
+ ``` bash
162
+ $ phpunit
163
+ ```
164
+
147
165
## License
148
166
149
167
MIT, see [ LICENSE file] ( LICENSE ) .
You can’t perform that action at this time.
0 commit comments