File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1111sudo : false
1212
1313install :
14- - composer install --prefer-source --no-interaction
14+ - COMPOSER_ROOT_VERSION=`git describe --abbrev=0` composer install --no-interaction
1515
1616script :
1717 - 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.
1616 * [ ConnectionInterface] ( #connectioninterface )
1717 * [ getRemoteAddress()] ( #getremoteaddress )
1818* [ Install] ( #install )
19+ * [ Tests] ( #tests )
1920* [ License] ( #license )
2021
2122## Quickstart example
@@ -144,6 +145,23 @@ $ composer require react/socket:^0.4.4
144145
145146More details about version upgrades can be found in the [ CHANGELOG] ( CHANGELOG.md ) .
146147
148+ ## Tests
149+
150+ The 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+
147165## License
148166
149167MIT, see [ LICENSE file] ( LICENSE ) .
You can’t perform that action at this time.
0 commit comments