Make WordPress Core

Changeset 964 in tests


Ignore:
Timestamp:
08/12/2012 10:10:55 PM (14 years ago)
Author:
SergeyBiryukov
Message:

Fix shortcode_unautop() tests on Windows environments. see [371]. see [573].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/shortcode.php

    r930 r964  
    300300        function test_shortcode_unautop() {
    301301                // a blank line is added at the end, so test with it already there
    302                 $test_string = <<<EOF
    303 [footag]
    304 
    305 EOF;
    306 
     302                $test_string = "[footag]\n";
    307303                $this->assertEquals( $test_string, shortcode_unautop( wpautop( $test_string ) ) );
    308304        }
    … …  
    313309        function test_multiple_shortcode_unautop() {
    314310                // a blank line is added at the end, so test with it already there
    315                 $test_string = <<<EOF
    316 [footag]
    317 [footag]
    318 
    319 EOF;
    320 
     311                $test_string = "[footag]\n[footag]\n";
    321312                $actual = shortcode_unautop( wpautop( $test_string ) );
    322313                $this->assertEquals( $test_string, $actual );
Note: See TracChangeset for help on using the changeset viewer.