-
Notifications
You must be signed in to change notification settings - Fork 25
Upgrade phpunit to 7.X #125
base: 2.3-develop
Are you sure you want to change the base?
Conversation
- PHPUnit -> ~7.0.0 - PHPCPD -> ~4.0.0
/** | ||
* Class MethodInvokedAtIndex | ||
* Matches invocations per 'method' at 'position' | ||
* Example: | ||
* Example:§ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops, ammended and pushed
Thanks for submitting the PR! |
- Replace \PHPUnit_Framework_MockObject_Matcher_InvokedCount - Replace \PHPUnit_Framework_MockObject_Stub_Return
Replaced hardcoded broken assertion
b6f0b75
to
fd14539
Compare
@buskamuza thanks for the review, I'll take a look at the failing tests |
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
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