File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ matrix:
2121sudo : false
2222
2323install :
24- - composer install --no-interaction
25-
24+ - COMPOSER_ROOT_VERSION=`git describe --abbrev=0` composer install --no-interaction
25+
2626script :
2727 - vendor/bin/phpunit --coverage-text
Original file line number Diff line number Diff line change @@ -108,10 +108,12 @@ More details about version upgrades can be found in the [CHANGELOG](CHANGELOG.md
108108## Tests
109109
110110To run the test suite, you first need to clone this repo and then install all
111- dependencies [ through Composer] ( http://getcomposer.org ) :
111+ dependencies [ through Composer] ( http://getcomposer.org ) .
112+ Because the test suite contains some circular dependencies, you may have to
113+ manually specify the root package version like this:
112114
113115``` bash
114- $ composer install
116+ $ COMPOSER_ROOT_VERSION= ` git describe --abbrev=0 ` composer install
115117```
116118
117119To run the test suite, go to the project root and run:
Original file line number Diff line number Diff line change 77 "php" : " >=5.3.0" ,
88 "react/cache" : " ~0.4.0|~0.3.0" ,
99 "react/event-loop" : " ^1.0 || ^0.5 || ^0.4 || ^0.3.5" ,
10+ "react/promise" : " ^2.1 || ^1.2.1" ,
11+ "react/promise-timer" : " ^1.2" ,
1012 "react/socket" : " ^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5 || ^0.4.4" ,
11- "react/stream" : " ^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.5" ,
12- "react/promise" : " ~2.1|~1.2" ,
13- "react/promise-timer" : " ~1.1"
13+ "react/stream" : " ^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.5"
1414 },
1515 "require-dev" : {
1616 "phpunit/phpunit" : " ^5.0 || ^4.8.10"
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public function testRejectsPromiseWhenWrappedRejects()
7676
7777 public function testWrappedWillBeCancelledOnTimeout ()
7878 {
79- $ this ->executor = new TimeoutExecutor ($ this ->wrapped , 0.001 , $ this ->loop );
79+ $ this ->executor = new TimeoutExecutor ($ this ->wrapped , 0 , $ this ->loop );
8080
8181 $ cancelled = 0 ;
8282
You can’t perform that action at this time.
0 commit comments