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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
| <?php
namespace Tests\Extension;
use PHPUnit\Runner\AfterIncompleteTestHook;
use PHPUnit\Runner\AfterLastTestHook;
use PHPUnit\Runner\AfterRiskyTestHook;
use PHPUnit\Runner\AfterSkippedTestHook;
use PHPUnit\Runner\AfterSuccessfulTestHook;
use PHPUnit\Runner\AfterTestErrorHook;
use PHPUnit\Runner\AfterTestFailureHook;
use PHPUnit\Runner\AfterTestHook;
use PHPUnit\Runner\AfterTestWarningHook;
use PHPUnit\Runner\BeforeFirstTestHook;
use PHPUnit\Runner\BeforeTestHook;
class TestHooksExtension implements AfterIncompleteTestHook,
AfterRiskyTestHook,
AfterSkippedTestHook,
AfterSuccessfulTestHook,
AfterTestErrorHook,
AfterTestFailureHook,
AfterTestWarningHook,
BeforeFirstTestHook,
BeforeTestHook,
AfterTestHook,
AfterLastTestHook
{
/**
* @interface AfterIncompleteTestHook
*/
public function executeAfterIncompleteTest(string $test, string $message, float $time): void{
// AfterIncompleteTestHook
// テスト未完成
}
/**
* @interface AfterRiskyTestHook
*/
public function executeAfterRiskyTest(string $test, string $message, float $time): void{
// AfterRiskyTestHook
// テスト危険
}
/**
* @interface AfterSkippedTestHook
*/
public function executeAfterSkippedTest(string $test, string $message, float $time): void{
// AfterSkippedTestHook
// テストスキップ
}
/**
* @interface AfterSuccessfulTestHook
*/
public function executeAfterSuccessfulTest(string $test, float $time): void{
// AfterSuccessfulTestHook
// テスト成功
}
/**
* @interface AfterTestErrorHook
*/
public function executeAfterTestError(string $test, string $message, float $time): void{
// AfterTestErrorHook
// テストエラー
}
/**
* @interface AfterTestFailureHook
*/
public function executeAfterTestFailure(string $test, string $message, float $time): void{
// AfterTestFailureHook
// テスト失敗
}
/**
* @interface AfterTestWarningHook
*/
public function executeAfterTestWarning(string $test, string $message, float $time): void{
// AfterTestWarningHook
// テスト警告
}
}
|