Inheritance: extends Flitch\Rule\AbstractRule, implements Flitch\Rule\FileRuleInterface
Example #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')));
 }