Make WordPress Core


Ignore:
Timestamp:
05/29/2024 12:20:56 PM (12 months ago)
Author:
SergeyBiryukov
Message:

Tests: Use more specific assertions in a few tests.

Follow-up to [121/tests], [915/tests], [34903], [36307], [43548], [44154], [52286], [57337].

See #60705.

File:
1 edited

Legend:

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

    r56536 r58235  
    2323    public function test_output_is_not_longer_than_optional_length_argument( $utf8, $unused_for_this_test ) {
    2424        $max_length = 30;
    25         $this->assertTrue( strlen( utf8_uri_encode( $utf8, $max_length ) ) <= $max_length );
     25        $this->assertLessThanOrEqual( $max_length, strlen( utf8_uri_encode( $utf8, $max_length ) ) );
    2626    }
    2727
Note: See TracChangeset for help on using the changeset viewer.