File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ class ConfigCacheTest extends TestCase
1919{
2020 private $ cacheFile = null ;
2121
22- protected function setUp ()
22+ protected function setUp (): void
2323 {
2424 $ this ->cacheFile = tempnam (sys_get_temp_dir (), 'config_ ' );
2525 }
2626
27- protected function tearDown ()
27+ protected function tearDown (): void
2828 {
2929 $ files = [$ this ->cacheFile , $ this ->cacheFile .'.meta ' ];
3030
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class DirectoryResourceTest extends TestCase
1818{
1919 protected $ directory ;
2020
21- protected function setUp ()
21+ protected function setUp (): void
2222 {
2323 $ this ->directory = sys_get_temp_dir ().\DIRECTORY_SEPARATOR .'symfonyDirectoryIterator ' ;
2424 if (!file_exists ($ this ->directory )) {
@@ -27,7 +27,7 @@ protected function setUp()
2727 touch ($ this ->directory .'/tmp.xml ' );
2828 }
2929
30- protected function tearDown ()
30+ protected function tearDown (): void
3131 {
3232 if (!is_dir ($ this ->directory )) {
3333 return ;
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ class FileExistenceResourceTest extends TestCase
2020 protected $ file ;
2121 protected $ time ;
2222
23- protected function setUp ()
23+ protected function setUp (): void
2424 {
2525 $ this ->file = realpath (sys_get_temp_dir ()).'/tmp.xml ' ;
2626 $ this ->time = time ();
2727 $ this ->resource = new FileExistenceResource ($ this ->file );
2828 }
2929
30- protected function tearDown ()
30+ protected function tearDown (): void
3131 {
3232 if (file_exists ($ this ->file )) {
3333 unlink ($ this ->file );
Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ class FileResourceTest extends TestCase
2020 protected $ file ;
2121 protected $ time ;
2222
23- protected function setUp ()
23+ protected function setUp (): void
2424 {
2525 $ this ->file = sys_get_temp_dir ().'/tmp.xml ' ;
2626 $ this ->time = time ();
2727 touch ($ this ->file , $ this ->time );
2828 $ this ->resource = new FileResource ($ this ->file );
2929 }
3030
31- protected function tearDown ()
31+ protected function tearDown (): void
3232 {
3333 if (!file_exists ($ this ->file )) {
3434 return ;
Original file line number Diff line number Diff line change 1616
1717class GlobResourceTest extends TestCase
1818{
19- protected function tearDown ()
19+ protected function tearDown (): void
2020 {
2121 $ dir = \dirname (__DIR__ ).'/Fixtures ' ;
2222 @rmdir ($ dir .'/TmpGlob ' );
Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ class ResourceCheckerConfigCacheTest extends TestCase
2020{
2121 private $ cacheFile = null ;
2222
23- protected function setUp ()
23+ protected function setUp (): void
2424 {
2525 $ this ->cacheFile = tempnam (sys_get_temp_dir (), 'config_ ' );
2626 }
2727
28- protected function tearDown ()
28+ protected function tearDown (): void
2929 {
3030 $ files = [$ this ->cacheFile , "{$ this ->cacheFile }.meta " ];
3131
You can’t perform that action at this time.
0 commit comments