Skip to content

Phpunit warning fixes appframework - #358

Merged
rullzer merged 2 commits into
masterfrom
phpunit-warning-fixes-appframework
Jul 11, 2016
Merged

Phpunit warning fixes appframework#358
rullzer merged 2 commits into
masterfrom
phpunit-warning-fixes-appframework

Conversation

@rullzer

Copy link
Copy Markdown
Member

Part 1 of the ongoing effort the get clean unit tests of >=phpunit-5.4

CC: @MorrisJobke@nickvergessen@LukasReschke

@rullzerrullzer added the 3. to review Waiting for reviews label Jul 10, 2016
@rullzerrullzer added this to the Nextcloud Next milestone Jul 10, 2016
@mention-bot

Copy link
Copy Markdown

@rullzer, thanks for your PR! By analyzing the annotation information on this pull request, we identified @LukasReschke, @BernhardPosselt and @DeepDiver1975 to be potential reviewers

@icewind1991

Copy link
Copy Markdown
Member

👍

(getMock was deprecated in 5.4)

->setConstructorArgs(['name'])
->getMock();
$this->api = $this->getMockBuilder('OC\AppFramework\Core\API')
->setMethods([])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you can just skip it ;) it was only needed because if the parameter order

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

yep very true

@nickvergessen

Copy link
Copy Markdown
Member

👍

* getMock is deprecated.
* \PDOStatement mocking fails hard on phpunit 4.8
@rullzer
rullzerforce-pushed the phpunit-warning-fixes-appframework branch from 98c170b to 937c951CompareJuly 11, 2016 06:50
@rullzer
rullzer merged commit f3d3fdd into masterJul 11, 2016
@rullzer
rullzer deleted the phpunit-warning-fixes-appframework branch July 11, 2016 07:44
R0Wi pushed a commit to R0Wi/server that referenced this pull request Nov 22, 2025
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@rullzer@mention-bot@icewind1991@nickvergessen