Problem/Motivation

Method returnSelf() of class PHPUnit\Framework\TestCase is deprecated in PHPUnit 10.

Proposed resolution

Use $double->willReturnSelf() instead.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3432849

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Status: Active » Needs review
spokje’s picture

Status: Needs review » Reviewed & tested by the community

Replacement makes sense, couldn't find any other occurrences than the ones in the MR, Green tests => RTBC

  • catch committed eb0c49b0 on 10.3.x
    Issue #3432849 by mondrake, Spokje: Method returnSelf() of class PHPUnit...

  • catch committed 63a572fc on 11.x
    Issue #3432849 by mondrake, Spokje: Method returnSelf() of class PHPUnit...
catch’s picture

Version: 11.x-dev » 10.3.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x and cherry-picked to 10.3.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.