File tree Expand file tree Collapse file tree 4 files changed +30
-2
lines changed
Expand file tree Collapse file tree 4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 8787 ini-values : ${{ env.PHP_INI_VALUES }}
8888 tools : composer:v2
8989
90+ - name : Start Redis
91+ uses : supercharge/redis-github-action@1.1.0
92+ with :
93+ redis-version : 6
94+
9095 - name : Install dependencies
9196 run : composer update --no-ansi --no-interaction --no-progress
9297
Original file line number Diff line number Diff line change 2222 },
2323 "autoload-dev" : {
2424 "psr-4" : {
25- "ServiceBus\\ TelegramBot\\ Tests\\ " : " tests/"
25+ "ServiceBus\\ TelegramBot\\ Tests\\ " : " tests/" ,
26+ "ServiceBus\\ Common\\ Tests\\ " : " vendor/php-service-bus/common/tests/" ,
27+ "ServiceBus\\ HttpClient\\ Tests\\ " : " vendor/php-service-bus/http-client/tests/" ,
28+ "ServiceBus\\ Mutex\\ Tests\\ " : " vendor/php-service-bus/mutex/tests/" ,
29+ "ServiceBus\\ MessageSerializer\\ Tests\\ " : " vendor/php-service-bus/message-serializer/tests/"
2630 }
2731 },
2832 "require" : {
Original file line number Diff line number Diff line change 1414 </coverage >
1515 <php >
1616 <ini name =" error_reporting" value =" -1" />
17+ <env name =" REDIS_CONNECTION_DSN" value =" tcp://localhost:6379" />
1718 </php >
1819 <testsuites >
20+
21+ <testsuite name =" Component: common" >
22+ <directory >./vendor/php-service-bus/common/tests/</directory >
23+ </testsuite >
24+
25+ <testsuite name =" Component: mutex" >
26+ <directory >./vendor/php-service-bus/mutex/tests/</directory >
27+ </testsuite >
28+
29+ <testsuite name =" Component: http client" >
30+ <directory >./vendor/php-service-bus/http-client/tests/</directory >
31+ </testsuite >
32+
33+ <testsuite name =" Component: message serializer" >
34+ <directory >./vendor/php-service-bus/message-serializer/tests/</directory >
35+ </testsuite >
36+
1937 <testsuite name =" Telegram component" >
2038 <directory >./tests/</directory >
2139 </testsuite >
40+
2241 </testsuites >
2342</phpunit >
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ final class InteractionsProvider
5454
5555 public function __construct (?HttpClient $ httpClient = null , ?TelegramSerializer $ serializer = null )
5656 {
57- $ this ->httpClient = $ httpClient ?? new ArtaxHttpClient ();
57+ $ this ->httpClient = $ httpClient ?? ArtaxHttpClient:: build ();
5858 $ this ->serializer = $ serializer ?? new WrappedSymfonySerializer ();
5959 $ this ->validator = (new ValidatorBuilder ())->enableAnnotationMapping ()->getValidator ();
6060 }
You can’t perform that action at this time.
0 commit comments