1515use PHPUnit \Framework \AssertionFailedError ;
1616use PHPUnit \Framework \Test ;
1717use PHPUnit \Framework \TestListener ;
18+ use PHPUnit \Framework \TestSuite ;
1819use PHPUnit \Framework \Warning ;
1920use Symfony \Component \Process \PhpExecutableFinder ;
2021use Symfony \Component \Process \Process ;
@@ -56,31 +57,31 @@ public function getProcess($arguments)
5657 return new Process ($ arguments );
5758 }
5859
59- public function addError (Test $ test , \Exception $ e , $ time )
60+ public function addError (Test $ test , \Throwable $ e , float $ time ): void
6061 {
6162 }
6263
63- public function addFailure (Test $ test , AssertionFailedError $ e , $ time )
64+ public function addFailure (Test $ test , AssertionFailedError $ e , float $ time ): void
6465 {
6566 }
6667
67- public function addWarning (Test $ test , Warning $ e , $ time )
68+ public function addWarning (Test $ test , Warning $ e , float $ time ): void
6869 {
6970 }
7071
71- public function addIncompleteTest (Test $ test , \Exception $ e , $ time )
72+ public function addIncompleteTest (Test $ test , \Throwable $ e , float $ time ): void
7273 {
7374 }
7475
75- public function addSkippedTest (Test $ test , \Exception $ e , $ time )
76+ public function addSkippedTest (Test $ test , \Throwable $ e , float $ time ): void
7677 {
7778 }
7879
79- public function addRiskyTest (Test $ test , \Exception $ e , $ time )
80+ public function addRiskyTest (Test $ test , \Throwable $ e , float $ time ): void
8081 {
8182 }
8283
83- public function startTest (Test $ test )
84+ public function startTest (Test $ test ): void
8485 {
8586 switch (static ::$ currentSuite ->getName ()) {
8687 case 'orm ' :
@@ -103,11 +104,11 @@ public function startTest(Test $test)
103104 $ purger ->purge ();
104105 }
105106
106- public function endTest (Test $ test , $ time )
107+ public function endTest (Test $ test , float $ time ): void
107108 {
108109 }
109110
110- public function startTestSuite (TestSuite $ suite )
111+ public function startTestSuite (TestSuite $ suite ): void
111112 {
112113 static ::$ currentSuite = $ suite ;
113114
@@ -206,7 +207,7 @@ private function setUpOrmDatabase($suite)
206207 echo '[ORM] ' .PHP_EOL ;
207208 }
208209
209- public function endTestSuite (TestSuite $ suite )
210+ public function endTestSuite (TestSuite $ suite ): void
210211 {
211212 if (!in_array ($ suite ->getName (), ['phpcr ' , 'orm ' ])) {
212213 return ;
0 commit comments