Skip to content

Commit

Permalink
Merge pull request #147 from burzum/fix/concat
Browse files Browse the repository at this point in the history
Fixing concat, it breaks some files if there is no new line.
  • Loading branch information
burzum committed Mar 15, 2015
2 parents cdac760 + 27a56a8 commit c6e7d3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Task/File/Concat.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function run()
return Result::error($this, sprintf('File %s not found', $file));
}

$dump .= file_get_contents($file);
$dump .= file_get_contents($file) . "\n";
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/cli/ConcatCept.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
->to('merged.txt')
->run();
$I->seeFileFound('merged.txt');
$I->seeFileContentsEqual('AB');
$I->seeFileContentsEqual("A\nB\n");

0 comments on commit c6e7d3f

Please sign in to comment.