@@ -43,6 +43,8 @@ public function testInstance()
43
43
* @param string $basePath
44
44
* @param int $permissions
45
45
* @param string $path
46
+ * @throws FileSystemException
47
+ * @throws ValidatorException
46
48
*/
47
49
public function testCreate ($ basePath , $ permissions , $ path )
48
50
{
@@ -66,6 +68,11 @@ public function createProvider()
66
68
];
67
69
}
68
70
71
+ /**
72
+ * Test for create outside
73
+ *
74
+ * @throws FileSystemException
75
+ */
69
76
public function testCreateOutside ()
70
77
{
71
78
$ exceptions = 0 ;
@@ -93,6 +100,8 @@ public function testCreateOutside()
93
100
*
94
101
* @dataProvider deleteProvider
95
102
* @param string $path
103
+ * @throws FileSystemException
104
+ * @throws ValidatorException
96
105
*/
97
106
public function testDelete ($ path )
98
107
{
@@ -113,6 +122,11 @@ public function deleteProvider()
113
122
return [['subdir ' ], ['subdir/subsubdir ' ]];
114
123
}
115
124
125
+ /**
126
+ * Test for delete outside
127
+ *
128
+ * @throws FileSystemException
129
+ */
116
130
public function testDeleteOutside ()
117
131
{
118
132
$ exceptions = 0 ;
@@ -143,6 +157,8 @@ public function testDeleteOutside()
143
157
* @param int $permissions
144
158
* @param string $name
145
159
* @param string $newName
160
+ * @throws FileSystemException
161
+ * @throws ValidatorException
146
162
*/
147
163
public function testRename ($ basePath , $ permissions , $ name , $ newName )
148
164
{
@@ -166,6 +182,11 @@ public function renameProvider()
166
182
return [['newDir1 ' , 0777 , 'first_name.txt ' , 'second_name.txt ' ]];
167
183
}
168
184
185
+ /**
186
+ * Test for rename outside
187
+ *
188
+ * @throws FileSystemException
189
+ */
169
190
public function testRenameOutside ()
170
191
{
171
192
$ exceptions = 0 ;
@@ -200,6 +221,8 @@ public function testRenameOutside()
200
221
* @param int $permission
201
222
* @param string $name
202
223
* @param string $newName
224
+ * @throws FileSystemException
225
+ * @throws ValidatorException
203
226
*/
204
227
public function testRenameTargetDir ($ firstDir , $ secondDir , $ permission , $ name , $ newName )
205
228
{
@@ -259,6 +282,11 @@ public function copyProvider()
259
282
];
260
283
}
261
284
285
+ /**
286
+ * Test for copy outside
287
+ *
288
+ * @throws FileSystemException|ValidatorException
289
+ */
262
290
public function testCopyOutside ()
263
291
{
264
292
$ exceptions = 0 ;
@@ -333,6 +361,8 @@ public function copyTargetDirProvider()
333
361
334
362
/**
335
363
* Test for changePermissions method
364
+ *
365
+ * @throws FileSystemException|ValidatorException
336
366
*/
337
367
public function testChangePermissions ()
338
368
{
@@ -341,6 +371,11 @@ public function testChangePermissions()
341
371
$ this ->assertTrue ($ directory ->changePermissions ('test_directory ' , 0644 ));
342
372
}
343
373
374
+ /**
375
+ * Test for changePermissions outside
376
+ *
377
+ * @throws FileSystemException
378
+ */
344
379
public function testChangePermissionsOutside ()
345
380
{
346
381
$ exceptions = 0 ;
@@ -365,6 +400,8 @@ public function testChangePermissionsOutside()
365
400
366
401
/**
367
402
* Test for changePermissionsRecursively method
403
+ *
404
+ * @throws FileSystemException|ValidatorException
368
405
*/
369
406
public function testChangePermissionsRecursively ()
370
407
{
@@ -376,6 +413,11 @@ public function testChangePermissionsRecursively()
376
413
$ this ->assertTrue ($ directory ->changePermissionsRecursively ('test_directory ' , 0777 , 0644 ));
377
414
}
378
415
416
+ /**
417
+ * Test for changePermissionsRecursively outside
418
+ *
419
+ * @throws FileSystemException
420
+ */
379
421
public function testChangePermissionsRecursivelyOutside ()
380
422
{
381
423
$ exceptions = 0 ;
@@ -430,6 +472,11 @@ public function touchProvider()
430
472
];
431
473
}
432
474
475
+ /**
476
+ * Test for touch outside
477
+ *
478
+ * @throws FileSystemException
479
+ */
433
480
public function testTouchOutside ()
434
481
{
435
482
$ exceptions = 0 ;
@@ -454,6 +501,8 @@ public function testTouchOutside()
454
501
455
502
/**
456
503
* Test isWritable method
504
+ *
505
+ * @throws FileSystemException|ValidatorException
457
506
*/
458
507
public function testIsWritable ()
459
508
{
@@ -463,6 +512,11 @@ public function testIsWritable()
463
512
$ this ->assertTrue ($ directory ->isWritable ('bar ' ));
464
513
}
465
514
515
+ /**
516
+ * Test isWritable method outside
517
+ *
518
+ * @throws FileSystemException
519
+ */
466
520
public function testIsWritableOutside ()
467
521
{
468
522
$ exceptions = 0 ;
@@ -517,6 +571,11 @@ public function openFileProvider()
517
571
];
518
572
}
519
573
574
+ /**
575
+ * Test for openFile outside
576
+ *
577
+ * @throws FileSystemException
578
+ */
520
579
public function testOpenFileOutside ()
521
580
{
522
581
$ exceptions = 0 ;
@@ -587,6 +646,11 @@ public function writeFileProvider()
587
646
return [['file1 ' , '123 ' , '456 ' ], ['folder1/file1 ' , '123 ' , '456 ' ]];
588
647
}
589
648
649
+ /**
650
+ * Test for writeFile outside
651
+ *
652
+ * @throws FileSystemException
653
+ */
590
654
public function testWriteFileOutside ()
591
655
{
592
656
$ exceptions = 0 ;
@@ -610,6 +674,8 @@ public function testWriteFileOutside()
610
674
}
611
675
612
676
/**
677
+ * Test for invalidDeletePath
678
+ *
613
679
* @throws ValidatorException
614
680
*/
615
681
public function testInvalidDeletePath ()
@@ -623,6 +689,8 @@ public function testInvalidDeletePath()
623
689
624
690
/**
625
691
* Tear down
692
+ *
693
+ * @throws ValidatorException|FileSystemException
626
694
*/
627
695
protected function tearDown (): void
628
696
{
0 commit comments