Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.2 #242

Merged
merged 2 commits into from
Jul 8, 2023
Merged

3.2 #242

merged 2 commits into from
Jul 8, 2023

Conversation

wilr
Copy link
Member

@wilr wilr commented Jul 8, 2023

No description provided.

kinglozzer and others added 2 commits May 25, 2022 13:12
* Added Github Actions Workflows

php-http/discovery required for 7.4 tests

* Updated composer.json

Upgraded PHPUnit to 9.5 and to php-http/guzzle7-adapter

* PHPUnit: Added void return type

setUp function

* PHPUnit: Added @doesNotPerformAssertions

For incomplete tests

* PHPUnit: Updated phpunit.xml.dist

Wrapped testsuite in testsuites

* PHPUnit: Added additional void return type

To tearDown, setUpBeforeClass and tearDownAfterClass functions

* PHPUnit: updated PaymentTest.php

Upgraded to php-http/guzzle7-adapter

* PHPUnit: updated PaymentMathTest.php

Reduced decimal places due to the limitation of using the number_format function

* PHP8.1 Compatibility

As per PR #239

* PHPUnit: added guzzlehttp/psr7 to composer.json

As a dev dependency

* PHPUnit: added expectException function

To all functions that expect failure

* PHPUnit: updated various as highlighted by GitHub Actions

- Changed a payment gateway url to sec.windcave.com for Payment Express tests.  Updated the version of omnipay/paymentexpress in composer.json to account for a recent branding change.
- Changed assertInternalType('array', etc.) to assertIsArray
- For Guzzlehttp\Psr7, replaced parse_response with Message::parseResponse
- Replaced contains function with a callback in BasePurchaseServiceTest.php
- Updated PaymentMathTest.php because the function bcsub cannot have a precision below 0
- Replaced strftime in Payment.php with date_format.  Added SilverStripe\Omnipay\Model\Payment\TitleTemplateDateFormat to the language files.  Removed unnecessary tests in PaymentModelTest.php because language settings cannot be dynamically changed.
- Added symfony/http-foundation as a dev dependency to composer.json
- Added php_codesniffer to ci.yml to ensure it is loaded
- Updated phpcs.xml.dist to align with the one used by SilverStripe Framework

* Updated various with PHP_CodeSniffer

Code beautifier & fixer

* Dropped travis

Replaced by GitHub Actions
@wilr wilr merged commit e26ea2b into main Jul 8, 2023
12 checks passed
@GuySartorelli GuySartorelli restored the 3.2 branch December 7, 2023 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants