Make WordPress Core

Ticket #35022: 35022-test.2.diff

File 35022-test.2.diff, 578 bytes (added by gitlost, 8 years ago)

\xA0 -> \xC0\xA0

  • tests/phpunit/tests/shortcode.php

    diff --git tests/phpunit/tests/shortcode.php tests/phpunit/tests/shortcode.php
    index 9f6a71d..3dce032 100644
    EOF; 
    312312        }
    313313
    314314        /**
     315         * @ticket 35022
     316         */
     317        public function test_non_breaking_space_following_shortcode_tag() {
     318                do_shortcode( "[test-shortcode-tag\xC2\xA0foo=\"bar\"]" );
     319                $this->assertSame( 'test-shortcode-tag', $this->tagname );
     320                $this->assertSame( array( 'foo' => 'bar' ), $this->atts );
     321        }
     322
     323        /**
    315324         * @ticket 6562
    316325         */
    317326        function test_utf8_whitespace_2() {