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
19
19
{
20
20
private $ cacheFile = null ;
21
21
22
- protected function setUp ()
22
+ protected function setUp (): void
23
23
{
24
24
$ this ->cacheFile = tempnam (sys_get_temp_dir (), 'config_ ' );
25
25
}
26
26
27
- protected function tearDown ()
27
+ protected function tearDown (): void
28
28
{
29
29
$ files = [$ this ->cacheFile , $ this ->cacheFile .'.meta ' ];
30
30
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class DirectoryResourceTest extends TestCase
18
18
{
19
19
protected $ directory ;
20
20
21
- protected function setUp ()
21
+ protected function setUp (): void
22
22
{
23
23
$ this ->directory = sys_get_temp_dir ().\DIRECTORY_SEPARATOR .'symfonyDirectoryIterator ' ;
24
24
if (!file_exists ($ this ->directory )) {
@@ -27,7 +27,7 @@ protected function setUp()
27
27
touch ($ this ->directory .'/tmp.xml ' );
28
28
}
29
29
30
- protected function tearDown ()
30
+ protected function tearDown (): void
31
31
{
32
32
if (!is_dir ($ this ->directory )) {
33
33
return ;
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ class FileExistenceResourceTest extends TestCase
20
20
protected $ file ;
21
21
protected $ time ;
22
22
23
- protected function setUp ()
23
+ protected function setUp (): void
24
24
{
25
25
$ this ->file = realpath (sys_get_temp_dir ()).'/tmp.xml ' ;
26
26
$ this ->time = time ();
27
27
$ this ->resource = new FileExistenceResource ($ this ->file );
28
28
}
29
29
30
- protected function tearDown ()
30
+ protected function tearDown (): void
31
31
{
32
32
if (file_exists ($ this ->file )) {
33
33
unlink ($ this ->file );
Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ class FileResourceTest extends TestCase
20
20
protected $ file ;
21
21
protected $ time ;
22
22
23
- protected function setUp ()
23
+ protected function setUp (): void
24
24
{
25
25
$ this ->file = sys_get_temp_dir ().'/tmp.xml ' ;
26
26
$ this ->time = time ();
27
27
touch ($ this ->file , $ this ->time );
28
28
$ this ->resource = new FileResource ($ this ->file );
29
29
}
30
30
31
- protected function tearDown ()
31
+ protected function tearDown (): void
32
32
{
33
33
if (!file_exists ($ this ->file )) {
34
34
return ;
Original file line number Diff line number Diff line change 16
16
17
17
class GlobResourceTest extends TestCase
18
18
{
19
- protected function tearDown ()
19
+ protected function tearDown (): void
20
20
{
21
21
$ dir = \dirname (__DIR__ ).'/Fixtures ' ;
22
22
@rmdir ($ dir .'/TmpGlob ' );
Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ class ResourceCheckerConfigCacheTest extends TestCase
20
20
{
21
21
private $ cacheFile = null ;
22
22
23
- protected function setUp ()
23
+ protected function setUp (): void
24
24
{
25
25
$ this ->cacheFile = tempnam (sys_get_temp_dir (), 'config_ ' );
26
26
}
27
27
28
- protected function tearDown ()
28
+ protected function tearDown (): void
29
29
{
30
30
$ files = [$ this ->cacheFile , "{$ this ->cacheFile }.meta " ];
31
31
You can’t perform that action at this time.
0 commit comments