Make WordPress Core


Ignore:
Timestamp:
09/04/2020 07:36:33 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Replace a few more instances of assertEquals() with assertSame().

These were previously missed due to incorrect capitalization.

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

See #38266.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/JSEscape.php

    r48937 r48940  
    3636        $out = esc_js( "foo\rbar\nbaz\r" );
    3737        // \r is stripped.
    38         $this->assertequals( "foobar\\nbaz", $out );
     38        $this->assertSame( "foobar\\nbaz", $out );
    3939    }
    4040
     
    4242        $out = esc_js( "foo\r\nbar\nbaz\r\n" );
    4343        // \r is stripped.
    44         $this->assertequals( "foo\\nbar\\nbaz\\n", $out );
     44        $this->assertSame( "foo\\nbar\\nbaz\\n", $out );
    4545    }
    4646}
Note: See TracChangeset for help on using the changeset viewer.