Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Upgrade phpunit to 7.X #125

Open
wants to merge 12 commits into
base: 2.3-develop
Choose a base branch
from

Conversation

mikeymike
Copy link

Description

Upgrade PHPUnit to 7

Currently only resolved failing unit tests and I'm fully expecting functional / integration tests to have some issues too but thought I'd start with this and check the tests in Travis

Fixed Issues (if relevant)

magento-engcom/zf1-php-7.2-support#6

Manual testing scenarios

phpunit -c dev/tests/unit/phpunit.xml.dist

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/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

/**
* Class MethodInvokedAtIndex
* Matches invocations per 'method' at 'position'
* Example:
* Example:§
Copy link
Contributor

Choose a reason for hiding this comment

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

Is paragraph symbol expected here?

Copy link
Author

Choose a reason for hiding this comment

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

whoops, ammended and pushed

@buskamuza buskamuza changed the base branch from libs-upgrade to 2.3-develop April 14, 2018 04:48
@buskamuza
Copy link
Contributor

Thanks for submitting the PR!
I see that some tests failed on Travis and there is one small question in the PR.
Also, I changed the target branch to 2.3-develop as all the work from libs-upgrade has just been merged to 2.3-develop recently and we'll stop the work in libs-upgrade.

@mikeymike
Copy link
Author

@buskamuza thanks for the review, I'll take a look at the failing tests

@mikeymike
Copy link
Author

@buskamuza I'm not really sure why the last run is failing, potentially some edge case of some kind... would probably pass if rerun 🤔

Anyway I just read on slack that PHPUnit upgrade has already been completed by someone else so I guess this might have been a waste of time... I'll leave it for you to handle as needed 👍

{
/**
* @var array
*/
protected $indexes = [];

/**PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants