Skip to content

Commit a1dc531

Browse files
authored
Refactor BEditaClient (#38)
* refactor: split client into 2 classes * chore fix: comment * chore fix: remove redundant test * feat: more tests * feat: more tests * feat: more coverage * fix: remove duplicated test * feat: refactor * feat: migrate phpunit config * feat: update php workflow behaviour on * refactor: LogTrait * chore fix: phpcs * refactor: refresh and retry * fix: comment test case * refactor: move methods to BaseClient * feat: update woohoolabs yang to version 3 * feat: add testMultipurpose * chore fix: phpdoc * fix: tests * tests: restore wrong renew token test * fix: test for be4 + be5 * tests: refreshToken on invalid response from server * tests: testSendRequestRetryOnException * chore fix: phpcs * test: testConstruct * refactor: BEditaClient * dev: min coverage 99 * dev: min coverage 98 * test: more coverage * chore fix: phpcs * chore fix: phpcs * dev: min code coverage 99 * doc: BEdita ref
1 parent 5fb0b3f commit a1dc531

9 files changed

+1783
-883
lines changed

.github/workflows/php.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,42 @@ on:
66
- '**/*.php'
77
- '.github/workflows/php.yml'
88
- '**/composer.json'
9+
- 'phpunit.xml.dist'
910
- 'psalm.xml'
1011
push:
1112
paths:
1213
- '**/*.php'
1314
- '.github/workflows/php.yml'
1415
- '**/composer.json'
16+
- 'phpunit.xml.dist'
1517
- 'psalm.xml'
1618

1719
jobs:
1820
cs:
1921
uses: bedita/github-workflows/.github/workflows/php-cs.yml@v2
2022
with:
21-
php_versions: '["7.4","8.1","8.2","8.3"]'
23+
php_versions: '["8.3"]'
2224

2325
psalm:
2426
uses: bedita/github-workflows/.github/workflows/php-psalm.yml@v2
2527
with:
26-
php_versions: '["7.4","8.1","8.2","8.3"]'
28+
php_versions: '["8.3"]'
2729

2830
stan:
2931
uses: bedita/github-workflows/.github/workflows/php-stan.yml@v2
3032
with:
31-
php_versions: '["7.4","8.1","8.2","8.3"]'
33+
php_versions: '["8.3"]'
3234

3335
unit-4:
3436
uses: bedita/github-workflows/.github/workflows/php-unit.yml@v2
3537
with:
3638
php_versions: '["7.4","8.1","8.2","8.3"]'
3739
bedita_version: '4'
40+
coverage_min_percentage: 99
3841

3942
unit-5:
4043
uses: bedita/github-workflows/.github/workflows/php-unit.yml@v2
4144
with:
4245
php_versions: '["7.4","8.1","8.2","8.3"]'
4346
bedita_version: '5'
47+
coverage_min_percentage: 99

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# BEdita API PHP SDK
22

3-
BEdita4 PHP Official PHP SDK
3+
BEdita PHP Official PHP SDK
44

55
[![Github Actions PHP](https://github.com/bedita/php-sdk/workflows/php/badge.svg)](https://github.com/bedita/php-sdk/actions?query=workflow%3Aphp)
66
[![Code Coverage](https://codecov.io/gh/bedita/php-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/bedita/bedita/branch/master)

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bedita/php-sdk",
3-
"description": "BEdita4 PHP SDK",
3+
"description": "BEdita PHP SDK",
44
"homepage": "https://www.bedita.com",
55
"type": "library",
66
"license": "MIT",

0 commit comments

Comments
 (0)