Skip to content

Commit

Permalink
Fix #1 - some files are not being overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
xthiago committed Sep 24, 2016
1 parent cf2354d commit 3916916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Converter/GhostscriptConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ public function convert($file, $newVersion)
if (!$this->fs->exists($tmpFile))
throw new \RuntimeException("The generated file '{$tmpFile}' was not found.");

$this->fs->copy($tmpFile, $file);
$this->fs->copy($tmpFile, $file, true);
}
}
3 changes: 2 additions & 1 deletion tests/Converter/GhostscriptConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public function testMustConvertPDFVersionWithSuccess($file, $newVersion)
;
$fs->copy(
Argument::type('string'),
$file
$file,
true
)
->willReturn(true)
->shouldBeCalled()
Expand Down

0 comments on commit 3916916

Please sign in to comment.