Beispiel #1
0
    public function testAcceptNearlyConflictingOffsets()
    {
        $original = <<<EOL
<?php
// this is a stub?
EOL;
        $this->populateFile($original);
        $f = new Scisr_File($this->test_file);
        $f->addEdit(2, 12, 6, 'something else', false);
        $f->addEdit(2, 18, 1, '!', false);
        $f->process(ScisrRunner::MODE_CONSERVATIVE);
        $expected = <<<EOL
<?php
// this is something else!
EOL;
        $this->compareFile($expected);
    }