Adding more tests

This commit is contained in:
Adrien Loison committed 2015-07-26 23:53:49 -07:00
1 parent 2345a80784
commit 86a4c3790a
8 files changed
+140 -6

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ class FileSystemHelper
$filePath = $parentFolderPath . '/' . $fileName;
$wasCreationSuccessful = file_put_contents($filePath, $fileContents);
if (!$wasCreationSuccessful) {
if ($wasCreationSuccessful === false) {
throw new IOException('Unable to create file: ' . $filePath);
}