FlitchTest\Rule\Line\SeparatorTest::testOnlyAllowMac PHP Метод

testOnlyAllowMac() публичный Метод

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