Make WordPress Core

Changeset 48937 for trunk

Timestamp:
09/02/2020 12:35:36 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests.

This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using assertSame() should generally be preferred to assertEquals() where appropriate, to make the tests more reliable.

Props johnbillion, jrf, SergeyBiryukov.
See #38266.

Location:
trunk/tests/phpunit
Files:
426 edited

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

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