Adding more tests
This commit is contained in:
1 parent
2345a80784
commit
86a4c3790a
8 files changed
+140
-6
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user