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 87
87
ini-values : ${{ env.PHP_INI_VALUES }}
88
88
tools : composer:v2
89
89
90
+ - name : Start Redis
91
+ uses :
supercharge/[email protected]
92
+ with :
93
+ redis-version : 6
94
+
90
95
- name : Install dependencies
91
96
run : composer update --no-ansi --no-interaction --no-progress
92
97
Original file line number Diff line number Diff line change 22
22
},
23
23
"autoload-dev" : {
24
24
"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/"
26
30
}
27
31
},
28
32
"require" : {
Original file line number Diff line number Diff line change 14
14
</coverage >
15
15
<php >
16
16
<ini name =" error_reporting" value =" -1" />
17
+ <env name =" REDIS_CONNECTION_DSN" value =" tcp://localhost:6379" />
17
18
</php >
18
19
<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
+
19
37
<testsuite name =" Telegram component" >
20
38
<directory >./tests/</directory >
21
39
</testsuite >
40
+
22
41
</testsuites >
23
42
</phpunit >
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ final class InteractionsProvider
54
54
55
55
public function __construct (?HttpClient $ httpClient = null , ?TelegramSerializer $ serializer = null )
56
56
{
57
- $ this ->httpClient = $ httpClient ?? new ArtaxHttpClient ();
57
+ $ this ->httpClient = $ httpClient ?? ArtaxHttpClient:: build ();
58
58
$ this ->serializer = $ serializer ?? new WrappedSymfonySerializer ();
59
59
$ this ->validator = (new ValidatorBuilder ())->enableAnnotationMapping ()->getValidator ();
60
60
}
You can’t perform that action at this time.
0 commit comments