FlitchTest\Rule\Line\SeparatorTest::testOnlyAllowUnixByDefault PHP Method

testOnlyAllowUnixByDefault() public method

    public function testOnlyAllowUnixByDefault()
    {
        $rule = new Separator();
        $rule->visitFile($this->file);
        $this->assertRuleViolations($this->file, array(array('line' => 1, 'column' => 0, 'message' => 'Line must end with "\\n", found "\\r\\n"', 'source' => 'Flitch\\Line\\Separator'), array('line' => 2, 'column' => 0, 'message' => 'Line must end with "\\n", found "\\r"', 'source' => 'Flitch\\Line\\Separator')));
    }