@@ -90,7 +90,7 @@ public function prepareOutputDirectory($outputDirectory, $deletePreviousResults)
9090 * @param Exception $e
9191 * @param float $time
9292 */
93- public function addError (Test $ test , Exception $ e , $ time )
93+ public function addError (Test $ test , \ Throwable $ e , float $ time ): void
9494 {
9595 $ event = new TestCaseBrokenEvent ();
9696 Allure::lifecycle ()->fire ($ event ->withException ($ e )->withMessage ($ e ->getMessage ()));
@@ -103,7 +103,7 @@ public function addError(Test $test, Exception $e, $time)
103103 * @param \PHPUnit\Framework\Warning $e
104104 * @param float $time
105105 */
106- public function addWarning (Test $ test , Warning $ e , $ time )
106+ public function addWarning (Test $ test , Warning $ e , float $ time ): void
107107 {
108108 // TODO: Implement addWarning() method.
109109 }
@@ -115,7 +115,7 @@ public function addWarning(Test $test, Warning $e, $time)
115115 * @param AssertionFailedError $e
116116 * @param float $time
117117 */
118- public function addFailure (Test $ test , AssertionFailedError $ e , $ time )
118+ public function addFailure (Test $ test , AssertionFailedError $ e , float $ time ): void
119119 {
120120 $ event = new TestCaseFailedEvent ();
121121
@@ -139,7 +139,7 @@ public function addFailure(Test $test, AssertionFailedError $e, $time)
139139 * @param Exception $e
140140 * @param float $time
141141 */
142- public function addIncompleteTest (Test $ test , Exception $ e , $ time )
142+ public function addIncompleteTest (Test $ test , \ Throwable $ e , float $ time ): void
143143 {
144144 $ event = new TestCasePendingEvent ();
145145 Allure::lifecycle ()->fire ($ event ->withException ($ e ));
@@ -153,7 +153,7 @@ public function addIncompleteTest(Test $test, Exception $e, $time)
153153 * @param float $time
154154 * @since Method available since Release 4.0.0
155155 */
156- public function addRiskyTest (Test $ test , Exception $ e , $ time )
156+ public function addRiskyTest (Test $ test , \ Throwable $ e , float $ time ): void
157157 {
158158 $ this ->addIncompleteTest ($ test , $ e , $ time );
159159 }
@@ -166,7 +166,7 @@ public function addRiskyTest(Test $test, Exception $e, $time)
166166 * @param float $time
167167 * @since Method available since Release 3.0.0
168168 */
169- public function addSkippedTest (Test $ test , Exception $ e , $ time )
169+ public function addSkippedTest (Test $ test , \ Throwable $ e , float $ time ): void
170170 {
171171 $ shouldCreateStartStopEvents = false ;
172172 if ($ test instanceof TestCase){
@@ -191,7 +191,7 @@ public function addSkippedTest(Test $test, Exception $e, $time)
191191 * @param TestSuite $suite
192192 * @since Method available since Release 2.2.0
193193 */
194- public function startTestSuite (TestSuite $ suite )
194+ public function startTestSuite (TestSuite $ suite ): void
195195 {
196196 if ($ suite instanceof DataProviderTestSuite) {
197197 return ;
@@ -218,7 +218,7 @@ public function startTestSuite(TestSuite $suite)
218218 * @param TestSuite $suite
219219 * @since Method available since Release 2.2.0
220220 */
221- public function endTestSuite (TestSuite $ suite )
221+ public function endTestSuite (TestSuite $ suite ): void
222222 {
223223 if ($ suite instanceof DataProviderTestSuite) {
224224 return ;
@@ -232,7 +232,7 @@ public function endTestSuite(TestSuite $suite)
232232 *
233233 * @param Test $test
234234 */
235- public function startTest (Test $ test )
235+ public function startTest (Test $ test ): void
236236 {
237237 if ($ test instanceof TestCase) {
238238 $ testName = $ test ->getName ();
@@ -256,7 +256,7 @@ public function startTest(Test $test)
256256 * @param float $time
257257 * @throws \Exception
258258 */
259- public function endTest (Test $ test , $ time )
259+ public function endTest (Test $ test , float $ time ): void
260260 {
261261 if ($ test instanceof TestCase) {
262262 Allure::lifecycle ()->fire (new TestCaseFinishedEvent ());
0 commit comments