forked from allure-framework/allure-codeception
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestLifecycleInterface.php
More file actions
49 lines (30 loc) · 1.32 KB
/
Copy pathTestLifecycleInterface.php
File metadata and controls
49 lines (30 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
declare(strict_types=1);
namespace Qameta\Allure\Codeception\Internal;
use Codeception\Step;
use Qameta\Allure\Model\Status;
use Qameta\Allure\Model\StatusDetails;
use Throwable;
interface TestLifecycleInterface
{
public function switchToSuite(SuiteInfo $suiteInfo): TestLifecycleInterface;
public function resetSuite(): TestLifecycleInterface;
public function switchToTest(object $test): TestLifecycleInterface;
public function create(): TestLifecycleInterface;
public function updateTest(): TestLifecycleInterface;
public function startTest(): TestLifecycleInterface;
public function stopTest(): TestLifecycleInterface;
public function updateTestFailure(
Throwable $error,
?Status $status = null,
?StatusDetails $statusDetails = null,
): TestLifecycleInterface;
public function updateTestSuccess(): TestLifecycleInterface;
public function attachReports(): TestLifecycleInterface;
public function updateTestResult(): TestLifecycleInterface;
public function startStep(Step $step): TestLifecycleInterface;
public function switchToStep(Step $step): TestLifecycleInterface;
public function stopStep(): TestLifecycleInterface;
public function updateStep(): TestLifecycleInterface;
public function updateStepResult(): TestLifecycleInterface;
}