WordPress.org

Make WordPress Core

Ticket #15241: test_includes_formatting.php.diff

File test_includes_formatting.php.diff, 904 bytes (added by nacin, 8 years ago)

New unit test

  • wp-testcase/test_includes_formatting.php

     
    403403                $this->assertEquals('‘test’s quoted’', wptexturize('\'test\'s quoted\''));
    404404                $this->assertEquals('“test’s quoted”', wptexturize('"test\'s quoted"'));
    405405        }
    406        
     406
     407        //WP Tickets #4539, #15241
     408        function test_full_sentences_with_unmatched_single_quotes() {
     409                $this->assertEquals(
     410                        'That means every moment you#8217;re working on something without it being in the public it#8217;s actually dying.',
     411                        wptexturize("That means every moment you're working on something without it being in the public it's actually dying.")
     412                );
     413        }
     414
    407415        //WP Ticket #4539
    408416        function test_quotes() {
    409417                $this->knownWPBug(4539);