File tree Expand file tree Collapse file tree
tests/system/Commands/Generators Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,13 +35,6 @@ protected function tearDown(): void
3535 if (is_file ($ path )) {
3636 unlink ($ path );
3737 }
38-
39- $ dir = dirname ($ path );
40- $ dirFiles = is_dir ($ dir ) ? scandir ($ dir ) : false ;
41-
42- if (str_starts_with ($ dir , APPPATH . 'Commands ' ) && $ dirFiles !== false && count ($ dirFiles ) === 2 ) {
43- rmdir ($ dir );
44- }
4538 }
4639 }
4740
Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ public function testSuffixingHasNoEffect(): void
101101 command ('make:foo bar --suffix ' );
102102 $ file1 = APPPATH . 'Commands/Bar.php ' ;
103103 $ file2 = APPPATH . 'Commands/BarCommand.php ' ;
104- $ dir = dirname ($ file1 );
105104
106105 $ this ->assertFileExists ($ file1 );
107106 $ this ->assertFileDoesNotExist ($ file2 );
@@ -112,8 +111,5 @@ public function testSuffixingHasNoEffect(): void
112111 if (is_file ($ file2 )) {
113112 unlink ($ file2 );
114113 }
115- if (is_dir ($ dir )) {
116- rmdir ($ dir );
117- }
118114 }
119115}
You can’t perform that action at this time.
0 commit comments