Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
a4c714b
chore: Improve SetBrandID logic
daanrijpkemacb Nov 10, 2024
e365558
fix: Improve exception in identity requests
daanrijpkemacb Nov 10, 2024
f7ed7be
chore: update phpunit
daanrijpkemacb Nov 10, 2024
18460b7
chore: add makefile
daanrijpkemacb Nov 10, 2024
ffdc23e
chore: improve test case setup
daanrijpkemacb Nov 10, 2024
28cb0f8
chore: Change CI settings
daanrijpkemacb Nov 10, 2024
cefabb2
chore: add root version to composer.json
daanrijpkemacb Nov 10, 2024
0a81bd8
chore: Add PHPCS & PHPCBF to the makefile & CI
daanrijpkemacb Nov 10, 2024
9b90986
Rewrite xml signature validation with newer dependency
daanrijpkemacb Apr 11, 2024
8880299
2.4: Add support for Bancontact payment method
daanrijpkemacb Oct 11, 2025
e89487d
[UAS-SCOUT] Update PHP version requirement to 8.3 and adjust dependen…
daanrijpkemacb Apr 4, 2026
32b6841
[UAS-SCOUT] Run Rector: Add strict types declaration and improve code…
daanrijpkemacb Apr 4, 2026
a95ac85
[UAS-SCOUT] Run PHPCS & PHPCBF: Standardize code formatting and spaci…
daanrijpkemacb Apr 4, 2026
7c06de4
[UAS-SCOUT] Update PHPUnit version and PHP platform configuration
daanrijpkemacb Apr 4, 2026
d39cb45
[UAS-SCOUT] Add Git hooks setup and pre-commit script for PHP file ch…
daanrijpkemacb Apr 5, 2026
9b22644
[UAS-SCOUT] Update BluemResponse classes to use nullable types for pr…
daanrijpkemacb Apr 5, 2026
c2b9295
[UAS-SCOUT] Refactor BluemConfigurationValidator to use Constants for…
daanrijpkemacb Apr 5, 2026
8fdd54f
[UAS-SCOUT] Update PHPUnit configuration to include separate test sui…
daanrijpkemacb Apr 5, 2026
cfafc22
[UAS-SCOUT] Implement CurlHttpTransport for HTTP requests
daanrijpkemacb Apr 5, 2026
e3e08a8
[UAS-SCOUT] Move FakeHttpTransport implementation to a separate file
daanrijpkemacb Apr 5, 2026
876c0f5
[UAS-SCOUT] Add paymentBrandID to BluemConfiguration and update const…
daanrijpkemacb Apr 5, 2026
6704410
Update BluemRequest constructors to accept stdClass
daanrijpkemacb Apr 5, 2026
3b77289
chore: add makefile
daanrijpkemacb Nov 10, 2024
4223212
chore: Add PHPCS & PHPCBF to the makefile & CI
daanrijpkemacb Nov 10, 2024
95b5acf
chore: Run linter
daanrijpkemacb Nov 10, 2024
e309566
chore: Fix ci
daanrijpkemacb Nov 10, 2024
1e19dd7
Update copyright year to 2026 and refactor code for consistency
DaanRijpkema Jun 29, 2026
2077639
refactor: Simplify Makefile structure and update test commands
DaanRijpkema Jun 29, 2026
4433961
Refactor WebhookSignatureValidation for improved signature validation…
DaanRijpkema Jun 29, 2026
744fb94
Refactor Bluem class and related components for improved readability …
DaanRijpkema Jun 29, 2026
c696f57
refactor: Remove unused PHP CodeSniffer and Magento coding standard d…
DaanRijpkema Jun 29, 2026
d29353c
refactor: Remove duplicate constant definition and update type hints …
DaanRijpkema Jun 29, 2026
7a5fee3
refactor: Remove PHP CodeSniffer step from CI and update exclusion ru…
DaanRijpkema Jun 29, 2026
4dd9dc2
refactor: Replace hardcoded merchantID with constant for test environ…
DaanRijpkema Jun 29, 2026
9a7d9d2
Update based on feedback: removed duplicated code, improved comment w…
DaanRijpkema Jun 29, 2026
0bb72c3
run linter
DaanRijpkema Jun 29, 2026
0d8c104
fix readme version requirement
DaanRijpkema Jun 29, 2026
e6eb572
fix; Fix constructor override issue and config object type matching
DaanRijpkema Jun 30, 2026
9c661bb
fix: added the 2.5 compatibility guard so we can keep the legacy plai…
DaanRijpkema Jun 30, 2026
d57593f
chore: linter
DaanRijpkema Jun 30, 2026
a170d15
also test on php 8.5
DaanRijpkema Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.3', '8.4']
php-version: ['8.3', '8.4', '8.5']

steps:
- name: Checkout code
Expand Down Expand Up @@ -41,6 +41,6 @@ jobs:
uses: php-actions/phpunit@v4
with:
php_version: ${{ matrix.php-version }}
version: 11
version: 12
bootstrap: ./vendor/autoload.php
configuration: ./.github/workflows/phpunit.xml
9 changes: 5 additions & 4 deletions .github/workflows/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php" colors="true"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
colors="true"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
>
<testsuites>
<testsuite name="Unit">
Expand Down
77 changes: 64 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,81 @@
# Executables and shared options
PHP := php
PHPUNIT := ./vendor/bin/phpunit
RECTOR := ./vendor/bin/rector
PHPCS := ./vendor/bin/phpcs
PHPCBF := ./vendor/bin/phpcbf
PHPUNIT_FLAGS := --testdox --display-errors --display-warnings --display-deprecations --display-phpunit-deprecations --display-notices
PHPCS_FLAGS := --standard=phpcs.xml.dist --extensions=php --ignore=vendor/

# Default target
all: help

# Tests
test_unit:
@printf 'Running unit tests:\n';
./vendor/bin/phpunit tests/Unit --testdox --display-errors --display-warnings --display-deprecations --display-phpunit-deprecations --display-notices
@printf 'Running unit tests:\n'
$(PHPUNIT) tests/Unit $(PHPUNIT_FLAGS)

test_integration:
@printf 'Running integration tests:\n';
@echo "Note: Ensure you have the necessary environment variables set for integration tests in the .env file."
./vendor/bin/phpunit tests/Integration --testdox --display-errors --display-warnings --display-deprecations --display-phpunit-deprecations --display-notices
@printf 'Running integration tests:\n'
@echo "Note: ensure the required integration variables are set in .env."
$(PHPUNIT) tests/Integration $(PHPUNIT_FLAGS)

test_acceptance:
@printf 'Running acceptance tests:\n';
./vendor/bin/phpunit tests/Acceptance --testdox --display-errors --display-warnings --display-deprecations --display-phpunit-deprecations --display-notices
@printf 'Running acceptance tests:\n'
$(PHPUNIT) tests/Acceptance $(PHPUNIT_FLAGS)

test:
@printf 'Running all tests:\n';
make test_unit;
make test_acceptance;
make test_integration;
@printf 'Running all tests:\n'
$(MAKE) test_unit
$(MAKE) test_acceptance
$(MAKE) test_integration

# Code style
lint:
./vendor/bin/phpcs --standard=phpcs.xml.dist --extensions=php --ignore=vendor/ .
@echo "Running PHP CodeSniffer..."
$(PHPCS) $(PHPCS_FLAGS) .

lint_fix:
./vendor/bin/phpcbf --standard=phpcs.xml.dist --extensions=php --ignore=vendor/ .
@echo "Fixing PHP CodeSniffer issues..."
$(PHPCBF) $(PHPCS_FLAGS) .

lint-fix: lint_fix

# Refactoring
rector:
@echo "Running Rector dry-run..."
$(RECTOR) process src --dry-run --clear-cache --config rector.php

rector_fix:
@echo "Applying Rector refactoring..."
$(RECTOR) process src --clear-cache --config rector.php

rector-fix: rector_fix

# Utilities
check: lint test_unit

clean:
@echo "Cleaning local tool caches..."
rm -rf .rector/cache .phpunit.result.cache .phpcs.cache

setup-git-hooks:
@echo "Setting up Git hooks..."
git config core.hooksPath .githooks
chmod +x .githooks/pre-commit

help:
@echo "Available targets:"
@echo " test_unit Run unit tests"
@echo " test_integration Run integration tests; requires .env"
@echo " test_acceptance Run acceptance tests"
@echo " test Run unit, acceptance, and integration tests"
@echo " lint Run PHP CodeSniffer"
@echo " lint_fix Auto-fix code style issues"
@echo " rector Run Rector in dry-run mode"
@echo " rector_fix Apply Rector refactoring"
@echo " check Run lint and unit tests"
@echo " clean Remove local tool caches"
@echo " setup-git-hooks Configure repository Git hooks"

.PHONY: all test test_unit test_integration test_acceptance lint lint_fix lint-fix rector rector_fix rector-fix check clean setup-git-hooks help
Loading
Loading