WordPress.org

Make WordPress Core

Changeset 48939

Timestamp:
09/04/2020 07:01:00 AM (15 months ago)
Author:
SergeyBiryukov
Message:

Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate.

This ensures that not only the array values being compared are equal, but also that their type is the same.

These new methods replace most of the existing instances of assertEqualSets() and assertEqualSetsWithIndex().

Going forward, stricter type checking by using assertSameSets() or assertSameSetsWithIndex() should generally be preferred, to make the tests more reliable.

Follow-up to [48937].

See #38266.

Location:
trunk/tests/phpunit
Files:
105 edited

Changeset view not shown, since the total size (4.8 MB) exceeds 4.0 MB

Note: See TracChangeset for help on using the changeset viewer.