WordPress.org

Make WordPress Core

Changeset 586 in tests


Ignore:
Timestamp:
03/20/12 21:46:11 (2 years ago)
Author:
kurtpayne
Message:

Normalizing EOLs for comparison.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_meta.php

    r407 r586  
    5050        $this->assertEquals('', strip_ws("\r\n\t  \n\r\t")); 
    5151 
    52         $in = <<<EOF 
    53 asdf 
    54 asdf asdf 
    55 asdf     asdf 
    56 \tasdf 
    57 \tasdf\t 
    58 \t\tasdf 
    59 foo bar\n\r\n 
    60 foo 
     52        $in  = "asdf\n"; 
     53        $in .= "asdf asdf\n"; 
     54        $in .= "asdf     asdf\n"; 
     55        $in .= "\tasdf\n"; 
     56        $in .= "\tasdf\t\n"; 
     57        $in .= "\t\tasdf\n"; 
     58        $in .= "foo bar\n\r\n"; 
     59        $in .= "foo\n"; 
    6160 
    62 EOF; 
    63  
    64         $expected = <<<EOF 
    65 asdf 
    66 asdf asdf 
    67 asdf     asdf 
    68 asdf 
    69 asdf 
    70 asdf 
    71 foo bar 
    72 foo 
    73 EOF; 
     61        $expected  = "asdf\n"; 
     62        $expected .= "asdf asdf\n"; 
     63        $expected .= "asdf     asdf\n"; 
     64        $expected .= "asdf\n"; 
     65        $expected .= "asdf\n"; 
     66        $expected .= "asdf\n"; 
     67        $expected .= "foo bar\n"; 
     68        $expected .= "foo"; 
     69         
    7470        $this->assertEquals($expected, strip_ws($in)); 
    7571 
Note: See TracChangeset for help on using the changeset viewer.