Make WordPress Core


Ignore:
Timestamp:
04/04/2026 11:17:45 PM (5 months ago)
Author:
SergeyBiryukov
Message:

Tests: Adjust Unicode tests for consistency.

Includes:

  • Adding missing @covers tags.
  • Correcting test class names as per the naming conventions.
  • Moving wp_check_invalid_utf8() tests to their own file, separate from wp_scrub_utf8().

Follow-up to [60630], [60793], [61000].

See #64225.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/unicode/wpIsValidUtf8.php

    r60630 r62207  
    11<?php
     2
    23/**
    34 * Unit tests covering WordPress’ UTF-8 handling.
     
    56 * @package WordPress
    67 * @group unicode
     8 *
     9 * @covers ::wp_is_valid_utf8
    710 */
     11class Tests_Unicode_WpIsValidUtf8 extends WP_UnitTestCase {
    812
    9 class Tests_WpIsValidUtf8TestCase extends WP_UnitTestCase {
    1013        /**
    1114         * Verifies that WordPress can properly detect valid and invalid UTF-8.
Note: See TracChangeset for help on using the changeset viewer.