Problem/Motivation

As title

Proposed resolution

Recommended regex for searching: assert\w+\(.+instanceof.+\)

Example:

-    $this->assertTrue($property instanceof StringInterface, 'Got the right wrapper fo the page.front property.');
+    $this->assertInstanceOf(StringInterface::class, $property, 'Got the right wrapper fo the page.front property.');

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork purge-3139245

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

alexshipilov created an issue. See original summary.

alexshipilov’s picture

alexshipilov’s picture

Assigned: alexshipilov » Unassigned
Status: Active » Needs review

japerry made their first commit to this issue’s fork.

  • japerry committed b569079b on 8.x-3.x
    Issue #3139245 by alexshipilov: Replace assert* involving an instanceof...
japerry’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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