@@ -37,14 +37,19 @@ protected function setUp(): void
3737 $ this ->clearGeneratedFiles ();
3838 }
3939
40+ protected function tearDown (): void
41+ {
42+ parent ::tearDown ();
43+ $ this ->clearGeneratedFiles ();
44+ }
45+
4046 public function testUpdateDefaultLocale (): void
4147 {
4248 @mkdir (self ::$ languageTestPath . self ::$ locale , 0777 , true );
4349 Services ::commands ()->run ('lang:find ' , [
4450 'dir ' => 'Translation ' ,
4551 ]);
4652 $ this ->realizeAssertion ();
47- $ this ->clearGeneratedFiles ();
4853 }
4954
5055 public function testUpdateWithLocaleOption (): void
@@ -56,7 +61,6 @@ public function testUpdateWithLocaleOption(): void
5661 'locale ' => self ::$ locale ,
5762 ]);
5863 $ this ->realizeAssertion ();
59- $ this ->clearGeneratedFiles ();
6064 }
6165
6266 public function testUpdateWithIncorrectLocaleOption (): void
@@ -68,15 +72,13 @@ public function testUpdateWithIncorrectLocaleOption(): void
6872 'locale ' => self ::$ locale ,
6973 ]);
7074 $ this ->assertSame ($ status , -1 );
71- $ this ->clearGeneratedFiles ();
7275 }
7376
7477 public function testUpdateWithEmptyDirOption (): void
7578 {
7679 @mkdir (self ::$ languageTestPath . self ::$ locale , 0777 , true );
7780 Services ::commands ()->run ('lang:find ' , []);
7881 $ this ->realizeAssertion ();
79- $ this ->clearGeneratedFiles ();
8082 }
8183
8284 public function testUpdateWithIncorrectDirOption (): void
@@ -86,7 +88,6 @@ public function testUpdateWithIncorrectDirOption(): void
8688 'dir ' => 'Translation/NotExistFolder ' ,
8789 ]);
8890 $ this ->assertSame ($ status , -1 );
89- $ this ->clearGeneratedFiles ();
9091 }
9192
9293 public function testShowNewTranslation (): void
@@ -97,7 +98,6 @@ public function testShowNewTranslation(): void
9798 'show-new ' => null ,
9899 ]);
99100 $ this ->assertStringContainsString ($ this ->getActualTableWithNewKeys (), $ this ->getStreamFilterBuffer ());
100- $ this ->clearGeneratedFiles ();
101101 }
102102
103103 private function getActualTranslationOneKeys (): array
0 commit comments