setEolStyle() public method

Valid values are windows, unix and mac.
public setEolStyle ( string $style ) : Separator
$style string
return Separator
Beispiel #1
0
 public function testOnlyAllowWindows()
 {
     $rule = new Separator();
     $rule->setEolStyle('windows');
     $rule->visitFile($this->file);
     $this->assertRuleViolations($this->file, array(array('line' => 2, 'column' => 0, 'message' => 'Line must end with "\\r\\n", found "\\r"', 'source' => 'Flitch\\Line\\Separator'), array('line' => 3, 'column' => 0, 'message' => 'Line must end with "\\r\\n", found "\\n"', 'source' => 'Flitch\\Line\\Separator')));
 }