Skip to content

Commit

Permalink
Merge pull request #975 from szepeviktor/follow-psr4
Browse files Browse the repository at this point in the history
Fix file names as per PSR-4
  • Loading branch information
mmaymo authored Jan 3, 2025
2 parents e6a8f52 + d9a8a74 commit 1a3e23e
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 60 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
coverage: none
tools: composer:v1
tools: composer:v2

- name: Validate composer.json and composer.lock
run: composer validate
Expand All @@ -28,14 +28,14 @@ jobs:
run: composer update --prefer-dist --no-progress

- name: dump autoload
run: composer dump-autoload
run: composer dump-autoload --dev --optimize --strict-psr

- name: check syntax
run: find src -name '*.php' | xargs -n 1 -P4 php -l

- name: Run PHPUnit
run: ./vendor/bin/phpunit

- name: Run Psalm
run: ./vendor/bin/psalm --show-info=false --threads=2

Expand Down
107 changes: 58 additions & 49 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/php/Functional/PaymentMethod/PaymentMethodTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


namespace php\Functional\PaymentMethod;
namespace Mollie\WooCommerceTests\Functional\PaymentMethod;


use Mollie\WooCommerce\Gateway\Surcharge;
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Functional/Shared/SurchargeHandlerTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


namespace php\Functional\Shared;
namespace Mollie\WooCommerceTests\Functional\Shared;


use Mollie\WooCommerce\Gateway\MolliePaymentGatewayHandler;
Expand Down
5 changes: 0 additions & 5 deletions tests/php/Stubs/stubs.php

This file was deleted.

5 changes: 4 additions & 1 deletion tests/php/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
die('Please install via Composer before running tests.');
}

require_once __DIR__ . '/Stubs/stubs.php';
require_once __DIR__ . '/../overrides/enqueue_scripts.php';
require_once __DIR__ . '/../overrides/woocommerce.php';
require_once __DIR__ . '/Stubs/varPolylangTestsStubs.php';

require_once $vendor . 'brain/monkey/inc/patchwork-loader.php';
require_once $vendor . 'autoload.php';

Expand Down

0 comments on commit 1a3e23e

Please sign in to comment.