File tree 4 files changed +24
-11
lines changed
4 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 10
10
- 5.6
11
11
- 7.0
12
12
- 7.1
13
+ - 7.2
14
+
15
+ env :
16
+ matrix :
17
+ -
18
+ - DEPENDENCIES=--prefer-lowest
19
+
20
+ matrix :
21
+ fast_finish : true
22
+
23
+ cache :
24
+ directories :
25
+ - vendor
13
26
14
27
install :
15
28
- alias composer=composer\ -n && composer selfupdate
16
29
- composer validate
17
- - composer --prefer-source install
30
+ - composer update --no-progress --no-suggest $DEPENDENCIES
18
31
19
32
script :
20
- - bin/ test --coverage-clover=build/logs/clover.xml
33
+ - composer test -- --coverage-clover=build/logs/clover.xml
21
34
22
35
after_success :
23
- - composer --prefer-source require satooshi /php-coveralls
24
- - vendor/bin/coveralls -v
36
+ - composer require php-coveralls /php-coveralls:^2
37
+ - vendor/bin/php- coveralls -v
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
"scriptfusion/retry" : " ^1"
12
12
},
13
13
"require-dev" : {
14
- "phpunit/phpunit" : " ^4"
14
+ "phpunit/phpunit" : " ^4.8 "
15
15
},
16
16
"autoload" : {
17
17
"psr-4" : {
22
22
"psr-4" : {
23
23
"ScriptFUSIONTest\\ Retry\\ ExceptionHandler\\ " : " test"
24
24
}
25
+ },
26
+ "scripts" : {
27
+ "test" : " phpunit -c test"
25
28
}
26
29
}
Original file line number Diff line number Diff line change 8
8
*/
9
9
class ExponentialBackoffExceptionHandler extends MicroSleepExceptionHandler
10
10
{
11
+ const DEFAULT_COEFFICIENT = 102000 ;
12
+
11
13
private $ microTimeCoefficient ;
12
14
13
- public function __construct ($ microTimeCoefficient = 102000 )
15
+ public function __construct ($ microTimeCoefficient = self :: DEFAULT_COEFFICIENT )
14
16
{
15
17
parent ::__construct ($ this ->generateSequence (
16
18
$ this ->microTimeCoefficient = $ microTimeCoefficient |0
You can’t perform that action at this time.
0 commit comments