@@ -77,7 +77,7 @@ public function createTextFile($filePath, $text): void
77
77
}
78
78
79
79
/**
80
- * Delete text file if exists.
80
+ * Delete a file from the storage if it exists
81
81
*
82
82
* @param string $filePath - path to file or json structure with paths by storage type.
83
83
* @throws \Magento\Framework\Exception\FileSystemException
@@ -88,7 +88,7 @@ public function deleteFileIfExists($filePath): void
88
88
}
89
89
90
90
/**
91
- * Copy source file to destination folder.
91
+ * Copy source into destination
92
92
*
93
93
* @param string $source - path to file or json structure with paths by storage type.
94
94
* @param string $destination - path to file or json structure with paths by storage type.
@@ -100,7 +100,7 @@ public function copy($source, $destination): void
100
100
}
101
101
102
102
/**
103
- * Create directory.
103
+ * Create directory in the storage
104
104
*
105
105
* @param string $path - path to file or json structure with paths by storage type.
106
106
* @param int $permissions
@@ -112,7 +112,7 @@ public function createDirectory($path, $permissions = 0777): void
112
112
}
113
113
114
114
/**
115
- * Delete directory.
115
+ * Recursive delete directory in the storage
116
116
*
117
117
* @param string $path - path to file or json structure with paths by storage type.
118
118
* @throws \Magento\Framework\Exception\FileSystemException
@@ -123,7 +123,7 @@ public function deleteDirectory($path): void
123
123
}
124
124
125
125
/**
126
- * Assert file exists by path.
126
+ * Assert a file exists in the storage
127
127
*
128
128
* @param string $filePath - path to file or json structure with paths by storage type.
129
129
* @param string $message
@@ -135,7 +135,7 @@ public function assertFileExists($filePath, $message = ''): void
135
135
}
136
136
137
137
/**
138
- * Assert file exists in glob results obtained by pattern.
138
+ * Asserts that a file with the given glob pattern exists in the given path in the storage
139
139
*
140
140
* @param string $path - path to file or json structure with paths by storage type.
141
141
* @param string $pattern
@@ -148,7 +148,7 @@ public function assertGlobbedFileExists($path, $pattern, $message = ''): void
148
148
}
149
149
150
150
/**
151
- * Assert directory exists.
151
+ * Asserts that a directory exists in the storage
152
152
*
153
153
* @param string $path - path to file or json structure with paths by storage type.
154
154
* @param string $message
@@ -160,7 +160,7 @@ public function assertDirectoryExists($path, $message = ''): void
160
160
}
161
161
162
162
/**
163
- * Assert directory does not exist.
163
+ * Asserts that a directory does not exist in the storage
164
164
*
165
165
* @param string $path - path to file or json structure with paths by storage type.
166
166
* @param string $message
@@ -172,7 +172,7 @@ public function assertDirectoryDoesNotExist($path, $message = ''): void
172
172
}
173
173
174
174
/**
175
- * Assert file does not exist.
175
+ * Assert a file does not exist in the storage
176
176
*
177
177
* @param string $filePath - path to file or json structure with paths by storage type.
178
178
* @param string $message
@@ -184,7 +184,7 @@ public function assertFileDoesNotExist($filePath, $message = ''): void
184
184
}
185
185
186
186
/**
187
- * Assert file exists and is empty.
187
+ * Assert a file in the storage has no contents
188
188
*
189
189
* @param string $filePath - path to file or json structure with paths by storage type.
190
190
* @param string $message
@@ -196,7 +196,7 @@ public function assertFileEmpty($filePath, $message = ''): void
196
196
}
197
197
198
198
/**
199
- * Assert file exists and is not empty.
199
+ * Assert a file in the storage is not empty
200
200
*
201
201
* @param string $filePath - path to file or json structure with paths by storage type.
202
202
* @param string $message
@@ -208,7 +208,7 @@ public function assertFileNotEmpty($filePath, $message = ''): void
208
208
}
209
209
210
210
/**
211
- * Assert file contains given string.
211
+ * Assert a file in the storage contains a given string
212
212
*
213
213
* @param string $filePath - path to file or json structure with paths by storage type.
214
214
* @param string $text
@@ -221,7 +221,7 @@ public function assertFileContainsString($filePath, $text, $message = ''): void
221
221
}
222
222
223
223
/**
224
- * Assert file obtained by glob pattern exists and contains string.
224
+ * Asserts that a file with the given glob pattern at the given path in the storage contains a given string
225
225
*
226
226
* @param string $path - path to file or json structure with paths by storage type.
227
227
* @param string $pattern
@@ -242,7 +242,7 @@ public function assertGlobbedFileContainsString($path, $pattern, $text, $fileInd
242
242
}
243
243
244
244
/**
245
- * Assert file exists and does not contain given string.
245
+ * Assert a file in the storage does not contain a given string
246
246
*
247
247
* @param string $filePath - path to file or json structure with paths by storage type.
248
248
* @param string $text
@@ -255,7 +255,7 @@ public function assertFileDoesNotContainString($filePath, $text, $message = ''):
255
255
}
256
256
257
257
/**
258
- * Assert directory is empty.
258
+ * Asserts that a directory in the storage is empty
259
259
*
260
260
* @param string $path - path to file or json structure with paths by storage type.
261
261
* @param string $message
@@ -267,7 +267,7 @@ public function assertDirectoryEmpty($path, $message = ''): void
267
267
}
268
268
269
269
/**
270
- * Assert directory is not empty.
270
+ * Asserts that a directory in the storage is not empty
271
271
*
272
272
* @param string $path - path to file or json structure with paths by storage type.
273
273
* @param string $message
0 commit comments