@@ -90,7 +90,7 @@ public function prepareOutputDirectory($outputDirectory, $deletePreviousResults)
90
90
* @param Exception $e
91
91
* @param float $time
92
92
*/
93
- public function addError (Test $ test , Exception $ e , $ time )
93
+ public function addError (Test $ test , \ Throwable $ e , float $ time ): void
94
94
{
95
95
$ event = new TestCaseBrokenEvent ();
96
96
Allure::lifecycle ()->fire ($ event ->withException ($ e )->withMessage ($ e ->getMessage ()));
@@ -103,7 +103,7 @@ public function addError(Test $test, Exception $e, $time)
103
103
* @param \PHPUnit\Framework\Warning $e
104
104
* @param float $time
105
105
*/
106
- public function addWarning (Test $ test , Warning $ e , $ time )
106
+ public function addWarning (Test $ test , Warning $ e , float $ time ): void
107
107
{
108
108
// TODO: Implement addWarning() method.
109
109
}
@@ -115,7 +115,7 @@ public function addWarning(Test $test, Warning $e, $time)
115
115
* @param AssertionFailedError $e
116
116
* @param float $time
117
117
*/
118
- public function addFailure (Test $ test , AssertionFailedError $ e , $ time )
118
+ public function addFailure (Test $ test , AssertionFailedError $ e , float $ time ): void
119
119
{
120
120
$ event = new TestCaseFailedEvent ();
121
121
@@ -139,7 +139,7 @@ public function addFailure(Test $test, AssertionFailedError $e, $time)
139
139
* @param Exception $e
140
140
* @param float $time
141
141
*/
142
- public function addIncompleteTest (Test $ test , Exception $ e , $ time )
142
+ public function addIncompleteTest (Test $ test , \ Throwable $ e , float $ time ): void
143
143
{
144
144
$ event = new TestCasePendingEvent ();
145
145
Allure::lifecycle ()->fire ($ event ->withException ($ e ));
@@ -153,7 +153,7 @@ public function addIncompleteTest(Test $test, Exception $e, $time)
153
153
* @param float $time
154
154
* @since Method available since Release 4.0.0
155
155
*/
156
- public function addRiskyTest (Test $ test , Exception $ e , $ time )
156
+ public function addRiskyTest (Test $ test , \ Throwable $ e , float $ time ): void
157
157
{
158
158
$ this ->addIncompleteTest ($ test , $ e , $ time );
159
159
}
@@ -166,7 +166,7 @@ public function addRiskyTest(Test $test, Exception $e, $time)
166
166
* @param float $time
167
167
* @since Method available since Release 3.0.0
168
168
*/
169
- public function addSkippedTest (Test $ test , Exception $ e , $ time )
169
+ public function addSkippedTest (Test $ test , \ Throwable $ e , float $ time ): void
170
170
{
171
171
$ shouldCreateStartStopEvents = false ;
172
172
if ($ test instanceof TestCase){
@@ -191,7 +191,7 @@ public function addSkippedTest(Test $test, Exception $e, $time)
191
191
* @param TestSuite $suite
192
192
* @since Method available since Release 2.2.0
193
193
*/
194
- public function startTestSuite (TestSuite $ suite )
194
+ public function startTestSuite (TestSuite $ suite ): void
195
195
{
196
196
if ($ suite instanceof DataProviderTestSuite) {
197
197
return ;
@@ -218,7 +218,7 @@ public function startTestSuite(TestSuite $suite)
218
218
* @param TestSuite $suite
219
219
* @since Method available since Release 2.2.0
220
220
*/
221
- public function endTestSuite (TestSuite $ suite )
221
+ public function endTestSuite (TestSuite $ suite ): void
222
222
{
223
223
if ($ suite instanceof DataProviderTestSuite) {
224
224
return ;
@@ -232,7 +232,7 @@ public function endTestSuite(TestSuite $suite)
232
232
*
233
233
* @param Test $test
234
234
*/
235
- public function startTest (Test $ test )
235
+ public function startTest (Test $ test ): void
236
236
{
237
237
if ($ test instanceof TestCase) {
238
238
$ testName = $ test ->getName ();
@@ -256,7 +256,7 @@ public function startTest(Test $test)
256
256
* @param float $time
257
257
* @throws \Exception
258
258
*/
259
- public function endTest (Test $ test , $ time )
259
+ public function endTest (Test $ test , float $ time ): void
260
260
{
261
261
if ($ test instanceof TestCase) {
262
262
Allure::lifecycle ()->fire (new TestCaseFinishedEvent ());
0 commit comments