public function testOnlyAllowUnix()
{
$rule = new Separator();
$rule->setEolStyle('unix');
$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')));
}