diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 8a1db76..a55f2a7 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -3,46 +3,61 @@ name: Acceptance on: [push, pull_request] jobs: - test-7-3: + test-7-4: runs-on: ubuntu-latest - name: Test PHP 7.3 + name: Test PHP 7.4 steps: - name: Checkout - uses: actions/checkout@v2 - - name: Set up PHP 7.3 + uses: actions/checkout@v3 + - name: Set up PHP 7.4 uses: shivammathur/setup-php@v2 with: - php-version: '7.3' + php-version: '7.4' - name: Composer run: make install - name: Test run: make test - test-7-4: + test-8-0: runs-on: ubuntu-latest - name: Test PHP 7.4 + name: Test PHP 8.0 steps: - name: Checkout - uses: actions/checkout@v2 - - name: Set up PHP 7.4 + uses: actions/checkout@v3 + - name: Set up PHP 8.0 uses: shivammathur/setup-php@v2 with: - php-version: '7.4' + php-version: '8.0' - name: Composer run: make install - name: Test run: make test - test-8-0: + test-8-1: runs-on: ubuntu-latest - name: Test PHP 8.0 + name: Test PHP 8.1 steps: - name: Checkout - uses: actions/checkout@v2 - - name: Set up PHP 8.0 + uses: actions/checkout@v3 + - name: Set up PHP 8.1 uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.1' + - name: Composer + run: make install + - name: Test + run: make test + + test-8-2: + runs-on: ubuntu-latest + name: Test PHP 8.2 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up PHP 8.2 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' - name: Composer run: make install - name: Test @@ -53,7 +68,7 @@ jobs: name: Code standard steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up PHP 8.0 uses: shivammathur/setup-php@v2 with: @@ -68,7 +83,7 @@ jobs: name: Code coverage steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up PHP 8.0 uses: shivammathur/setup-php@v2 with: diff --git a/Makefile b/Makefile index 930a9ed..54d507e 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ test: composer.lock ./vendor/bin/phpunit cs-check: composer.lock - ./vendor/bin/phpcs --standard=codestandard.xml lib tests examples + ./vendor/bin/phpcs --standard=PSR1,PSR12 --encoding=UTF-8 --report=full --colors lib tests examples coverage: composer.lock build XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml diff --git a/codestandard.xml b/codestandard.xml deleted file mode 100644 index bb1cd26..0000000 --- a/codestandard.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/composer.json b/composer.json index 9bc0dcc..5e5c47d 100644 --- a/composer.json +++ b/composer.json @@ -8,8 +8,7 @@ "name": "Fredrik Liljegren" }, { - "name": "Sören Jensen", - "email": "soren@abicart.se" + "name": "Sören Jensen" } ], "autoload": { @@ -23,11 +22,13 @@ } }, "require": { - "php": "^7.2 | ^8.0", - "psr/log": "^1 | ^2 | ^3" + "php": "^7.4 | ^8.0", + "phrity/net-uri": "^1.0", + "psr/log": "^1.0 | ^2.0 | ^3.0", + "psr/http-message": "^1.0" }, "require-dev": { - "phpunit/phpunit": "^8.0|^9.0", + "phpunit/phpunit": "^9.0", "php-coveralls/php-coveralls": "^2.0", "squizlabs/php_codesniffer": "^3.5" } diff --git a/lib/BadOpcodeException.php b/lib/BadOpcodeException.php index a518715..260a977 100644 --- a/lib/BadOpcodeException.php +++ b/lib/BadOpcodeException.php @@ -1,5 +1,12 @@ stream, true); } diff --git a/lib/ConnectionException.php b/lib/ConnectionException.php index 7e1ecbf..aa1d7f4 100644 --- a/lib/ConnectionException.php +++ b/lib/ConnectionException.php @@ -1,5 +1,12 @@ - - - - - tests - - - - - lib/ - - + + + + lib/ + + + + + tests + +