UnionOfRAD / li3_quality

(unmaintained) Code quality assurance for li₃.
BSD 3-Clause "New" or "Revised" License
12 stars 10 forks source link

Fixing line ending issue on Windows #77

Closed Ciaro closed 10 years ago

Ciaro commented 10 years ago

Only Unix based platforms were taken into account for the rule 'TabsOnlyAppearFirst'.

bayleedev commented 10 years ago

:+1:

Can you write a test over here?

public function testWindowsStyleLineEndings() {
    $code = implode(null, array(
        "\$arr = array(",
        "\r\n\t'foo' => 'bar',",
        "\r\n);",
    ));
    $this->assertRulePass($code, $this->rule);
}
Ciaro commented 10 years ago

Done, thanks for providing the test @blainesch!