@@ -44,31 +44,54 @@ public function testCreateDirectoryDuplicateDirectory(): void
44
44
45
45
public function testCopy (): void
46
46
{
47
- $ this ->markTestSkipped ();
47
+ $ this ->filesystem ->createDirectory (PMF_CONTENT_DIR . '/copy-test ' );
48
+ $ actual = $ this ->filesystem ->copy (
49
+ PMF_TEST_DIR . '/path/foo.bar ' ,
50
+ PMF_CONTENT_DIR . '/copy-test/foo.bar '
51
+ );
52
+ $ this ->assertTrue ($ actual );
53
+
54
+ $ actual = $ this ->filesystem ->deleteDirectory (PMF_CONTENT_DIR . '/copy-test ' );
55
+ $ this ->assertTrue ($ actual );
48
56
}
49
57
50
58
public function testSetPath (): void
51
59
{
52
- $ this ->markTestSkipped ();
60
+ $ this ->filesystem ->setPath (PMF_CONTENT_DIR );
61
+ $ this ->assertEquals (PMF_CONTENT_DIR , $ this ->filesystem ->getPath ());
53
62
}
54
63
55
64
public function testMoveDirectory (): void
56
65
{
57
- $ this ->markTestSkipped ();
66
+ $ this ->filesystem ->createDirectory (PMF_CONTENT_DIR . '/move-directory-test ' );
67
+ $ actual = $ this ->filesystem ->moveDirectory (
68
+ PMF_CONTENT_DIR . '/move-directory-test ' ,
69
+ PMF_CONTENT_DIR . '/move-directory-test-moved '
70
+ );
71
+ $ this ->assertTrue ($ actual );
72
+ $ actual = $ this ->filesystem ->deleteDirectory (PMF_CONTENT_DIR . '/move-directory-test-moved ' );
73
+ $ this ->assertTrue ($ actual );
58
74
}
59
75
60
76
public function testRecursiveCopy (): void
61
77
{
62
- $ this ->markTestSkipped ();
63
- }
78
+ $ testDirectory = PMF_CONTENT_DIR . '/recursive-copy-test ' ;
64
79
65
- public function testGetPath (): void
66
- {
67
- $ this ->markTestSkipped ();
80
+ $ actual = $ this ->filesystem ->recursiveCopy (PMF_TEST_DIR . '/fixtures ' , $ testDirectory );
81
+ $ this ->assertTrue ($ actual );
82
+
83
+ $ actual = is_file (PMF_CONTENT_DIR . '/recursive-copy-test/fixtures/foo.bar ' );
84
+ $ this ->assertTrue ($ actual );
85
+
86
+ $ actual = $ this ->filesystem ->deleteDirectory ($ testDirectory );
87
+ $ this ->assertTrue ($ actual );
68
88
}
69
89
70
90
public function testGetRootPath (): void
71
91
{
72
- $ this ->markTestSkipped ();
92
+ $ this ->assertEquals (
93
+ PMF_TEST_DIR ,
94
+ $ this ->filesystem ->getRootPath ()
95
+ );
73
96
}
74
97
}
0 commit comments