File tree Expand file tree Collapse file tree 4 files changed +37
-32
lines changed Expand file tree Collapse file tree 4 files changed +37
-32
lines changed Original file line number Diff line number Diff line change 2424 strategy :
2525 fail-fast : false
2626 matrix :
27- php-version : [ '7.4 ', '8.0 ', '8.1 ', '8.2 ' ]
27+ php-version : [ '8.1 ', '8.2 ', '8.3 ', '8.4 ' ]
2828 steps :
2929 - uses : " actions/checkout@v2"
3030 - uses : " shivammathur/setup-php@v2"
8181 max-parallel : 1
8282 fail-fast : false
8383 matrix :
84- php-version : [ '7.4 ', '8.0 ', '8.1 ', '8.2 ' ]
84+ php-version : [ '8.1 ', '8.2 ', '8.3 ', '8.4 ' ]
8585 steps :
8686 - uses : " actions/checkout@v2"
8787 - uses : " shivammathur/setup-php@v2"
9494 run : " mkdir -p build/logs"
9595 - uses : " ramsey/composer-install@v2"
9696 - name : " Run unit tests"
97- run : " composer phpunit"
97+ run : " composer phpunit -- --no-coverage "
Original file line number Diff line number Diff line change 2525 "require-dev" : {
2626 "php-parallel-lint/php-parallel-lint" : " ^1.3.1" ,
2727 "phpdocumentor/shim" : " ^3" ,
28- "phpunit/phpunit" : " ^9.6 " ,
28+ "phpunit/phpunit" : " ^10.5 " ,
2929 "squizlabs/php_codesniffer" : " ^3.6"
3030 },
3131 "autoload" : {
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<phpunit
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5/phpunit.xsd"
35 bootstrap =" ./vendor/autoload.php"
46 colors =" true"
5- convertErrorsToExceptions =" true"
6- convertWarningsToExceptions =" true"
7- convertNoticesToExceptions =" true"
8- convertDeprecationsToExceptions =" true"
9- >
10- <testsuites >
11- <testsuite name =" all" >
12- <directory >./tests</directory >
13- </testsuite >
14- </testsuites >
15-
16- <coverage >
17- <include >
18- <directory suffix =" .php" >src/</directory >
19- </include >
20-
21- <report >
22- <clover outputFile =" build/logs/clover.xml" />
23- <html outputDirectory =" build/coverage" />
24- <text outputFile =" php://stdout" />
25- </report >
26- </coverage >
27-
28- <logging >
29- <junit outputFile =" build/report.junit.xml" />
30- </logging >
31- </phpunit >
7+ cacheDirectory =" .phpunit.cache"
8+ failOnEmptyTestSuite =" true"
9+ failOnWarning =" true"
10+ failOnRisky =" true"
11+ failOnDeprecation =" true"
12+ failOnPhpunitDeprecation =" true"
13+ failOnNotice =" true"
14+ failOnIncomplete =" true"
15+ >
16+ <testsuites >
17+ <testsuite name =" all" >
18+ <directory >./tests</directory >
19+ </testsuite >
20+ </testsuites >
21+ <coverage >
22+ <report >
23+ <clover outputFile =" build/logs/clover.xml" />
24+ <html outputDirectory =" build/coverage" />
25+ <text outputFile =" php://stdout" />
26+ </report >
27+ </coverage >
28+ <logging >
29+ <junit outputFile =" build/report.junit.xml" />
30+ </logging >
31+ <source >
32+ <include >
33+ <directory suffix =" .php" >src/</directory >
34+ </include >
35+ </source >
36+ </phpunit >
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ public function __construct(
142142 $ application_secret ,
143143 $ api_endpoint ,
144144 $ consumer_key = null ,
145- Client $ http_client = null
145+ ? Client $ http_client = null
146146 ) {
147147 if (!isset ($ api_endpoint )) {
148148 throw new Exceptions \InvalidParameterException ("Endpoint parameter is empty " );
You can’t perform that action at this time.
0 commit comments