Skip to content

Commit

Permalink
Merge pull request #6 from codebar-ag/feature-l11
Browse files Browse the repository at this point in the history
Laravel 11
  • Loading branch information
StanBarrows authored Nov 13, 2024
2 parents 2fe3e36 + b7ed47b commit a156262
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ jobs:
matrix:
# os: [ ubuntu-latest, windows-latest ]
os: [ ubuntu-latest ]
php: [ 8.2 ]
laravel: [ 10.* ]
php: [ 8.2, 8.3 ]
laravel: [ 11.* ]
#stability: [ prefer-lowest, prefer-stable ]
stability: [ prefer-stable ]
include:
- laravel: 10.*
testbench: 8.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand All @@ -42,7 +39,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
Expand Down
6 changes: 5 additions & 1 deletion .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
{"version":"pest_2.34.0","defects":{"P\\Tests\\Feature\\GetInvoicePayerTest::__pest_evaluable_it_b2b_service_getInvoicePayer_test":7},"times":{"P\\Tests\\Feature\\GetInvoicePayerTest::__pest_evaluable_it_b2b_service_getInvoicePayer_test":0.542,"P\\Tests\\Feature\\GetInvoiceListPayerTest::__pest_evaluable_it_b2b_service_getInvoiceListPayer_test":0.405,"P\\Tests\\Feature\\PingTest::__pest_evaluable_it_b2b_service_executePing_test":0.408}}
<<<<<<< HEAD
{"version":"pest_2.34.0","defects":{"P\\Tests\\Feature\\GetInvoicePayerTest::__pest_evaluable_it_b2b_service_getInvoicePayer_test":7},"times":{"P\\Tests\\Feature\\GetInvoicePayerTest::__pest_evaluable_it_b2b_service_getInvoicePayer_test":0.542,"P\\Tests\\Feature\\GetInvoiceListPayerTest::__pest_evaluable_it_b2b_service_getInvoiceListPayer_test":0.405,"P\\Tests\\Feature\\PingTest::__pest_evaluable_it_b2b_service_executePing_test":0.408}}
=======
{"version":"pest_2.34.4","defects":{"P\\Tests\\Feature\\GetInvoicePayerTest::__pest_evaluable_it_b2b_service_getInvoicePayer_test":7},"times":{"P\\Tests\\Feature\\PingTest::__pest_evaluable_it_b2b_service_executePing_test":0.575,"P\\Tests\\Feature\\GetInvoicePayerTest::__pest_evaluable_it_b2b_service_getInvoicePayer_test":0.462,"P\\Tests\\Feature\\GetInvoiceListPayerTest::__pest_evaluable_it_b2b_service_getInvoiceListPayer_test":0.463}}
>>>>>>> 6d29bea28ed7d27993a1e62aa85c64de050b54c2
8 changes: 5 additions & 3 deletions src/Client/PostfinanceClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public static function factory(array $config): PostfinanceClient
new HeaderDefaultsPlugin([
'User-Agent' => 'Laravel PostFinance B2B',
]),
new RemoveEmptyNodesMiddleware(),
new RemoveEmptyNodesMiddleware,
new WsseMiddleware(
outgoing: [
(new Entry\Username($config['username']))
->withPassword($config['password'])
->withDigest(false),
]
),
new WsaMiddleware2005(),
new WsaMiddleware2005,
...($config['debug'] ? [
new LoggerPlugin(
(new Logger('http'))->pushHandler(
Expand All @@ -68,7 +68,9 @@ public static function factory(array $config): PostfinanceClient
)
);

$eventDispatcher = new EventDispatcher();
ray($engine);

$eventDispatcher = new EventDispatcher;
$caller = new EventDispatchingCaller(new EngineCaller($engine), $eventDispatcher);

return new PostfinanceClient($caller);
Expand Down
4 changes: 1 addition & 3 deletions src/PostfinanceB2B.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace CodebarAg\PostfinanceB2B;

class PostfinanceB2B
{
}
class PostfinanceB2B {}
4 changes: 2 additions & 2 deletions tests/Feature/PingTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use CodebarAg\PostfinanceB2B\CLient\PostfinanceClientFactory;
use CodebarAg\PostfinanceB2B\CLient\Type\ExecutePing;
use CodebarAg\PostfinanceB2B\Client\PostfinanceClientFactory;
use CodebarAg\PostfinanceB2B\Client\Type\ExecutePing;

it('b2b service executePing test', function () {

Expand Down

0 comments on commit a156262

Please sign in to comment.