Skip to content

MQE-2027: MFTF PHP Compatibility Update (PHP 7.4) #684

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

Merged
merged 7 commits into from
Apr 24, 2020
Merged

Conversation

jilu1
Copy link
Contributor

@jilu1 jilu1 commented Apr 22, 2020

Description

Fixed Issues (if relevant)

  1. magento/magento2-functional-testing-framework#<issue_number>: Issue title
  2. ...

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/verification tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)
  • Changes to Framework doesn't have backward incompatible changes for tests or have related Pull Request with fixes to tests

@jilu1 jilu1 changed the title Mqe 2027 2 MQE-2027: MFTF PHP Compatibility Update (PHP 7.4) Apr 22, 2020
@coveralls
Copy link

coveralls commented Apr 22, 2020

Coverage Status

Coverage increased (+0.1%) to 52.949% when pulling 1289e77 on MQE-2027-2 into a7fda0a on MFTF3.0.0-RC2.

@jilu1 jilu1 force-pushed the MQE-2027-2 branch 3 times, most recently from 318c38c to 7430748 Compare April 22, 2020 22:21
- changed formatMoney to formatCurrency
composer.json Outdated
@@ -9,46 +9,44 @@
"sort-packages": true
},
"require": {
"php": "^7.3",
"php": "~7.3.0||~7.4.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put back constraint ^7.3 I intentionally added it to simplify future updates. ^ will allow any minor versions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change it for consistency. Isn't ~7.3.0 the same as ^7.3?
~7.3.0: >= 7.3.0 and < 7.4.0
^7.3: >= 7.3.0 and < 7.4

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really.
~7.3.0: >=7.3.0 and < 7.4.0
and
^7.3: >= 7.3.0 and < 8

composer.json Outdated
"mustache/mustache": "~2.5",
"php-webdriver/webdriver": "^1.8.0",
"symfony/console": "^4.4",
"symfony/finder": "^4.4",
"symfony/finder": "^4.4||^5.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove 4.4 I think it's not necessary for us to support it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed. Will verify if it works

composer.json Outdated
"php-coveralls/php-coveralls": "^1.0",
"phpmd/phpmd": "^2.8.0",
"phpunit/phpunit": "~9.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please set phpunit constraint to be ^9.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it since you are confident on it :)

@@ -2277,4 +2287,27 @@ private function hasDecimalPoint(string $outStr)
{
return strpos($outStr, localeconv()['decimal_point']) !== false;
}

/**
* Parse userInput for formatCurrency action
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this doc block is not covering full picture. I can see this method is is not attached to action name but rather for presence of specific fields in action.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Will reword

jilu1 added 2 commits April 23, 2020 14:20
- changed formatMoney to formatCurrency
- changed formatMoney to formatCurrency
@jilu1 jilu1 merged commit d558832 into MFTF3.0.0-RC2 Apr 24, 2020
@tomreece tomreece deleted the MQE-2027-2 branch May 1, 2020 14:02
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