@@ -40,13 +40,13 @@ final class GitRepositoryProviderTest extends TestCase
40
40
*/
41
41
private $ root ;
42
42
43
- public static function setUpBeforeClass ()
43
+ public static function setUpBeforeClass (): void
44
44
{
45
45
self ::mockChdir ();
46
46
self ::mockGitDescribe ();
47
47
}
48
48
49
- protected function setUp ()
49
+ protected function setUp (): void
50
50
{
51
51
self ::$ gitDescribeExitCode = 0 ;
52
52
self ::$ gitDescribeOutput = __CLASS__ ;
@@ -65,15 +65,15 @@ protected function setUp()
65
65
/**
66
66
* @covers \Shivas\VersioningBundle\Provider\GitRepositoryProvider::isSupported
67
67
*/
68
- public function testIsSupportedNonGit ()
68
+ public function testIsSupportedNonGit (): void
69
69
{
70
70
$ this ->assertFalse ($ this ->gitRepositoryProvider ->isSupported ());
71
71
}
72
72
73
73
/**
74
74
* @covers \Shivas\VersioningBundle\Provider\GitRepositoryProvider::isSupported
75
75
*/
76
- public function testIsSupportedDirNotReadable ()
76
+ public function testIsSupportedDirNotReadable (): void
77
77
{
78
78
vfsStream::newDirectory ('.git ' )->at ($ this ->root );
79
79
$ this ->root ->getChild ('folder ' )->chmod (0000 );
@@ -83,7 +83,7 @@ public function testIsSupportedDirNotReadable()
83
83
/**
84
84
* @covers \Shivas\VersioningBundle\Provider\GitRepositoryProvider::isSupported
85
85
*/
86
- public function testIsSupportedGitDescribeError ()
86
+ public function testIsSupportedGitDescribeError (): void
87
87
{
88
88
vfsStream::newDirectory ('.git ' )->at ($ this ->root );
89
89
self ::$ gitDescribeExitCode = 1 ;
@@ -93,7 +93,7 @@ public function testIsSupportedGitDescribeError()
93
93
/**
94
94
* @covers \Shivas\VersioningBundle\Provider\GitRepositoryProvider::isSupported
95
95
*/
96
- public function testIsSupportedDir ()
96
+ public function testIsSupportedDir (): void
97
97
{
98
98
vfsStream::newDirectory ('.git ' )->at ($ this ->root );
99
99
self ::$ gitDescribeOutput = '1.2.3 ' ;
@@ -103,7 +103,7 @@ public function testIsSupportedDir()
103
103
/**
104
104
* @covers \Shivas\VersioningBundle\Provider\GitRepositoryProvider::isSupported
105
105
*/
106
- public function testIsSupportedFile ()
106
+ public function testIsSupportedFile (): void
107
107
{
108
108
vfsStream::newFile ('.git ' )->at ($ this ->root );
109
109
self ::$ gitDescribeOutput = '1.2.3 ' ;
@@ -113,7 +113,7 @@ public function testIsSupportedFile()
113
113
/**
114
114
* @covers \Shivas\VersioningBundle\Provider\GitRepositoryProvider::getVersion
115
115
*/
116
- public function testGetVersion ()
116
+ public function testGetVersion (): void
117
117
{
118
118
vfsStream::newDirectory ('.git ' )->at ($ this ->root );
119
119
self ::$ gitDescribeOutput = '1.2.3 ' ;
@@ -123,7 +123,7 @@ public function testGetVersion()
123
123
/**
124
124
* @covers \Shivas\VersioningBundle\Provider\GitRepositoryProvider::getVersion
125
125
*/
126
- public function testGetVersionGitDescribeError ()
126
+ public function testGetVersionGitDescribeError (): void
127
127
{
128
128
vfsStream::newDirectory ('.git ' )->at ($ this ->root );
129
129
self ::$ gitDescribeExitCode = 1 ;
@@ -133,7 +133,7 @@ public function testGetVersionGitDescribeError()
133
133
$ this ->gitRepositoryProvider ->getVersion ();
134
134
}
135
135
136
- private static function mockChdir ()
136
+ private static function mockChdir (): void
137
137
{
138
138
$ self = '\\' . __CLASS__ ;
139
139
eval (<<<EOPHP
@@ -151,7 +151,7 @@ function chdir(string \$directory): bool
151
151
);
152
152
}
153
153
154
- private static function mockGitDescribe ()
154
+ private static function mockGitDescribe (): void
155
155
{
156
156
$ self = '\\' . __CLASS__ ;
157
157
eval (<<<EOPHP
0 commit comments