WordPress.org

Make WordPress Core

Ticket #22286: 22286.test.diff

File 22286.test.diff, 535 bytes (added by SergeyBiryukov, 3 years ago)
  • tests/formatting/Slashit.php

     
    44 * @group formatting 
    55 */ 
    66class Tests_Formatting_Slashit extends WP_UnitTestCase { 
     7        function test_backslashes_middle_numbers() { 
     8                $this->assertEquals("\\a-!9\\a943\\b\\c", backslashit("a-!9a943bc")); 
     9        } 
     10 
    711        function test_backslashes_alphas() { 
    812                $this->assertEquals("\\a943\\b\\c", backslashit("a943bc")); 
    913        }