Make WordPress Core


Ignore:
Timestamp:
09/29/2023 03:22:12 PM (14 months ago)
Author:
jorbin
Message:

Tests: Reduce usage of assertEquals

Replaces assertSame with assertCount in a number of tests.

Props ayeshrajans, jorbin.
See #58956.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/feed/rss2.php

    r56559 r56746  
    247247            $cats = array_filter( $cats );
    248248            // Should be the same number of categories.
    249             $this->assertSame( count( $cats ), count( $categories ) );
     249            $this->assertCount( count( $cats ), $categories );
    250250
    251251            // ..with the same names.
Note: See TracChangeset for help on using the changeset viewer.