@@ -84,36 +84,6 @@ public function testFileExists()
8484 $ this ->object ->delete ($ this ->object ->getPath ('text-for-test-exists.txt ' ));
8585 }
8686
87- public function testDirectoryExists ()
88- {
89- $ this ->assertEquals (false , $ this ->object ->exists ($ this ->object ->getPath ('nonexistent-directory ' )));
90- $ this ->assertEquals (false , $ this ->object ->exists ($ this ->object ->getPath ('nonexistent-directory/ ' )));
91-
92- $ testDir = $ this ->object ->getPath ('test-directory-exists ' );
93- $ this ->assertTrue ($ this ->object ->createDirectory ($ testDir ));
94- $ this ->assertEquals (true , $ this ->object ->exists ($ testDir ));
95- $ this ->assertEquals (true , $ this ->object ->exists ($ testDir .'/ ' ));
96-
97- $ nestedDir = $ testDir .'/nested/deep/structure ' ;
98- $ this ->assertTrue ($ this ->object ->createDirectory ($ nestedDir ));
99- $ this ->object ->write ($ nestedDir .'/test.txt ' , 'Hello World ' );
100-
101- $ this ->assertEquals (true , $ this ->object ->exists ($ testDir .'/nested ' ));
102- $ this ->assertEquals (true , $ this ->object ->exists ($ testDir .'/nested/ ' ));
103- $ this ->assertEquals (true , $ this ->object ->exists ($ testDir .'/nested/deep ' ));
104- $ this ->assertEquals (true , $ this ->object ->exists ($ testDir .'/nested/deep/ ' ));
105- $ this ->assertEquals (true , $ this ->object ->exists ($ nestedDir ));
106- $ this ->assertEquals (true , $ this ->object ->exists ($ nestedDir .'/ ' ));
107-
108- $ this ->assertEquals (true , $ this ->object ->exists ($ nestedDir .'/test.txt ' ));
109-
110- $ this ->object ->delete ($ testDir , true );
111-
112- $ this ->assertEquals (false , $ this ->object ->exists ($ testDir ));
113- $ this ->assertEquals (false , $ this ->object ->exists ($ testDir .'/nested ' ));
114- $ this ->assertEquals (false , $ this ->object ->exists ($ nestedDir ));
115- }
116-
11787 public function testMove ()
11888 {
11989 $ this ->assertEquals ($ this ->object ->write ($ this ->object ->getPath ('text-for-move.txt ' ), 'Hello World ' ), true );
0 commit comments