Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed May 2, 2023
2 parents d7d7823 + 06bbb4a commit cc377ba
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 21 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
os:
- "ubuntu-latest"
php:
- "8.0"
- 8.2
dependencies:
- "highest"
experimental:
Expand All @@ -38,5 +38,11 @@ jobs:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache"

- name: Installed dependencies
run: composer show -D

- name: Execute Code Style Analysis
run: vendor/bin/pint --test

- name: Execute Static Code Analysis
run: vendor/bin/phpstan analyse
11 changes: 4 additions & 7 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
os:
- "ubuntu-latest"
php:
- "8.0"
phpunit:
- "^9.5.10"
- 8.2
dependencies:
- "highest"
experimental:
Expand All @@ -34,16 +32,15 @@ jobs:
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, bcmath, fileinfo
coverage: xdebug

- name: Install PHPUnit ${{ matrix.phpunit }}
run: |
composer require "phpunit/phpunit:${{ matrix.phpunit }}" --dev --no-interaction --no-update
- name: Install dependencies
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache"

- name: Installed dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- "ubuntu-latest"
- "windows-latest"
php:
- "8.0"
- "8.1"
- "8.2"
- '8.0'
- 8.1
- 8.2
dependencies:
- "highest"
- "lowest"
Expand All @@ -44,5 +44,8 @@ jobs:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache"

- name: Installed dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/phpunit
8 changes: 8 additions & 0 deletions CHANGELOG-4.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This changelog references the relevant changes (bug and security fixes) done to `jomweb/billplz`.

## 4.5.0

Released: 2022-12-14

### Changes

* Added support for payments with Extra Payment Completion Info.

## 4.4.0

Released: 2022-02-08
Expand Down
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@
}
},
"require": {
"php": "^8.0",
"php": ">=8.0.0 <8.3.0",
"jomweb/ringgit": "^2.3.1",
"laravie/codex": "^5.3.3",
"laravie/codex-filter": "^1.2.2",
"php-http/multipart-stream-builder": "^1.0"
},
"require-dev": {
"laravel/pint": "^1.1",
"mockery/mockery": "^1.4.4",
"php-http/guzzle7-adapter": "^1.0",
"phpstan/phpstan": "^1.0",
"phpunit/phpunit": "^9.5.10"
},
"extra": {
"branch-alias": {
"dev-master": "5.0-dev"
}
"phpstan/phpstan": "^1.10.5",
"phpunit/phpunit": "^9.6"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"php-http/discovery": true
}
},
"prefer-stable": true,
"minimum-stability": "dev"
}
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function expectRequest($method = 'GET', $uri = '/', array $headers = [

return Faker::create()
->expectEndpointIs($endpoint)
->call($method, $headers, http_build_query($body, null, '&'));
->call($method, $headers, http_build_query($body, '', '&'));
}

/**
Expand Down

0 comments on commit cc377ba

Please sign in to comment.