[wp-trac] [WordPress Trac] #38266: Tests: Use assertSame() when the type of the value in the assertion is important

WordPress Trac noreply at wordpress.org
Wed Feb 10 13:23:56 UTC 2021


#38266: Tests: Use assertSame() when the type of the value in the assertion is
important
-----------------------------------+-----------------------------
 Reporter:  johnbillion            |       Owner:  SergeyBiryukov
     Type:  task (blessed)         |      Status:  closed
 Priority:  normal                 |   Milestone:  5.7
Component:  Build/Test Tools       |     Version:
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  needs-unit-tests php8  |     Focuses:
-----------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"50283" 50283]:
 {{{
 #!CommitTicketReference repository="" revision="50283"
 Tests: Replace most instances of `assertEquals()` in `phpunit/includes/`
 with `assertSame()`.

 Follow-up to [48937], [48939], [48940], [48944].

 Props johnbillion, jrf, SergeyBiryukov.
 See #38266, #52482.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/38266#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list