15
15
use PHPUnit \Framework \AssertionFailedError ;
16
16
use PHPUnit \Framework \Test ;
17
17
use PHPUnit \Framework \TestListener ;
18
+ use PHPUnit \Framework \TestSuite ;
18
19
use PHPUnit \Framework \Warning ;
19
20
use Symfony \Component \Process \PhpExecutableFinder ;
20
21
use Symfony \Component \Process \Process ;
@@ -56,31 +57,31 @@ public function getProcess($arguments)
56
57
return new Process ($ arguments );
57
58
}
58
59
59
- public function addError (Test $ test , \Exception $ e , $ time )
60
+ public function addError (Test $ test , \Throwable $ e , float $ time ): void
60
61
{
61
62
}
62
63
63
- public function addFailure (Test $ test , AssertionFailedError $ e , $ time )
64
+ public function addFailure (Test $ test , AssertionFailedError $ e , float $ time ): void
64
65
{
65
66
}
66
67
67
- public function addWarning (Test $ test , Warning $ e , $ time )
68
+ public function addWarning (Test $ test , Warning $ e , float $ time ): void
68
69
{
69
70
}
70
71
71
- public function addIncompleteTest (Test $ test , \Exception $ e , $ time )
72
+ public function addIncompleteTest (Test $ test , \Throwable $ e , float $ time ): void
72
73
{
73
74
}
74
75
75
- public function addSkippedTest (Test $ test , \Exception $ e , $ time )
76
+ public function addSkippedTest (Test $ test , \Throwable $ e , float $ time ): void
76
77
{
77
78
}
78
79
79
- public function addRiskyTest (Test $ test , \Exception $ e , $ time )
80
+ public function addRiskyTest (Test $ test , \Throwable $ e , float $ time ): void
80
81
{
81
82
}
82
83
83
- public function startTest (Test $ test )
84
+ public function startTest (Test $ test ): void
84
85
{
85
86
switch (static ::$ currentSuite ->getName ()) {
86
87
case 'orm ' :
@@ -103,11 +104,11 @@ public function startTest(Test $test)
103
104
$ purger ->purge ();
104
105
}
105
106
106
- public function endTest (Test $ test , $ time )
107
+ public function endTest (Test $ test , float $ time ): void
107
108
{
108
109
}
109
110
110
- public function startTestSuite (TestSuite $ suite )
111
+ public function startTestSuite (TestSuite $ suite ): void
111
112
{
112
113
static ::$ currentSuite = $ suite ;
113
114
@@ -206,7 +207,7 @@ private function setUpOrmDatabase($suite)
206
207
echo '[ORM] ' .PHP_EOL ;
207
208
}
208
209
209
- public function endTestSuite (TestSuite $ suite )
210
+ public function endTestSuite (TestSuite $ suite ): void
210
211
{
211
212
if (!in_array ($ suite ->getName (), ['phpcr ' , 'orm ' ])) {
212
213
return ;
0 commit comments