+121
-57
lines changedFilter options
+121
-57
lines changed Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ jobs:
20
20
- "8.1"
21
21
- "8.2"
22
22
- "8.3"
23
+
- "8.4"
23
24
os:
24
25
- ubuntu-latest
25
26
- windows-latest
@@ -31,9 +32,6 @@ jobs:
31
32
- name: Checkout
32
33
uses: actions/checkout@v4
33
34
34
-
- name: Validate composer.json and composer.lock
35
-
run: composer validate
36
-
37
35
- name: Set up PHP ${{ matrix.php-version }}
38
36
uses: shivammathur/setup-php@v2
39
37
with:
@@ -42,6 +40,9 @@ jobs:
42
40
coverage: xdebug
43
41
ini-values: error_reporting=E_ALL
44
42
43
+
- name: Validate composer.json and composer.lock
44
+
run: composer validate
45
+
45
46
- name: Install dependencies
46
47
run: composer update
47
48
--prefer-dist
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ This adapter only generates JSON files containing information about tests. See [
35
35
## Installation && Usage
36
36
**Note:** this adapter supports Allure 2.x.x only.
37
37
38
-
Supported PHP versions: 8.1-8.3.
38
+
Supported PHP versions: 8.1-8.4.
39
39
40
40
In order to use this adapter you need to add a new dependency to your **composer.json** file:
41
41
```
Original file line number Diff line number Diff line change
@@ -29,18 +29,27 @@
29
29
"source": "https://github.com/allure-framework/allure-phpunit"
30
30
},
31
31
"require": {
32
-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
33
-
"allure-framework/allure-php-commons": "^2",
34
-
"phpunit/phpunit": "^10"
32
+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
33
+
"allure-framework/allure-php-commons": "^2.0",
34
+
"phpunit/phpunit": "^10 || ^11 || ^12"
35
35
},
36
36
"require-dev": {
37
-
"brianium/paratest": "^7",
38
-
"psalm/plugin-phpunit": "^0.18.4",
37
+
"phpunit/phpunit": "~10.4.0 || ^11 || ^12",
38
+
"brianium/paratest": "^7.3",
39
+
"psalm/plugin-phpunit": "^0.19.3",
39
40
"squizlabs/php_codesniffer": "^3.7.2",
40
-
"vimeo/psalm": "^5.15"
41
+
"vimeo/psalm": "^6.9"
41
42
},
42
43
"conflict": {
43
44
"amphp/byte-stream": "<1.5.1",
45
+
"amphp/dns": "<2.2.0",
46
+
"amphp/socket": "<2.3.1",
47
+
"amphp/cache": "<2.0.1",
48
+
"amphp/process": "<2.0.3",
49
+
"amphp/parser": "<1.1.1",
50
+
"daverandom/libdns": "<2.1.0",
51
+
"spatie/array-to-xml": "<3.3.0",
52
+
"ramsey/uuid": "<4.3.0",
44
53
"brianium/paratest": "<7.0.3"
45
54
},
46
55
"autoload": {
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<phpunit
3
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
5
-
colors="true"
6
-
displayDetailsOnIncompleteTests="true"
7
-
displayDetailsOnSkippedTests="true"
8
-
displayDetailsOnTestsThatTriggerDeprecations="true"
9
-
displayDetailsOnTestsThatTriggerWarnings="true"
10
-
displayDetailsOnTestsThatTriggerNotices="true"
11
-
displayDetailsOnTestsThatTriggerErrors="true"
12
-
defaultTestSuite="unit">
3
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.0/phpunit.xsd"
5
+
colors="true"
6
+
displayDetailsOnIncompleteTests="true"
7
+
displayDetailsOnSkippedTests="true"
8
+
displayDetailsOnTestsThatTriggerDeprecations="true"
9
+
displayDetailsOnTestsThatTriggerWarnings="true"
10
+
displayDetailsOnTestsThatTriggerNotices="true"
11
+
displayDetailsOnTestsThatTriggerErrors="true"
12
+
defaultTestSuite="unit">
13
13
<testsuites>
14
14
<testsuite name="unit">
15
15
<directory>test/unit/</directory>
16
16
</testsuite>
17
17
</testsuites>
18
-
<coverage>
18
+
<source>
19
19
<include>
20
20
<directory suffix=".php">src/</directory>
21
21
</include>
22
-
</coverage>
22
+
</source>
23
23
</phpunit>
Original file line number Diff line number Diff line change
@@ -48,21 +48,25 @@ public static function reset(): void
48
48
self::$instance = null;
49
49
}
50
50
51
+
#[\Override]
51
52
public function resetLastException(): void
52
53
{
53
54
$this->lastException = null;
54
55
}
55
56
57
+
#[\Override]
56
58
public function setLastException(Throwable $e): void
57
59
{
58
60
$this->lastException = $e;
59
61
}
60
62
63
+
#[\Override]
61
64
public function getLastException(): ?Throwable
62
65
{
63
66
return $this->lastException;
64
67
}
65
68
69
+
#[\Override]
66
70
public function registerStart(ContainerResult $containerResult, TestResult $testResult, TestInfo $info): string
67
71
{
68
72
$this->lastStarts[$info->getTest()] = new TestStartInfo(
@@ -73,6 +77,7 @@ public function registerStart(ContainerResult $containerResult, TestResult $test
73
77
return $testResult->getUuid();
74
78
}
75
79
80
+
#[\Override]
76
81
public function getContainerId(TestInfo $info): string
77
82
{
78
83
$startInfo = $this->lastStarts[$info->getTest()] ?? null;
@@ -81,6 +86,7 @@ public function getContainerId(TestInfo $info): string
81
86
?? throw new LogicException("Container not registered: {$info->getTest()}");
82
87
}
83
88
89
+
#[\Override]
84
90
public function getTestId(TestInfo $info): string
85
91
{
86
92
$startInfo = $this->lastStarts[$info->getTest()] ?? null;
@@ -89,6 +95,7 @@ public function getTestId(TestInfo $info): string
89
95
?? throw new LogicException("Test not registered: {$info->getTest()}");
90
96
}
91
97
98
+
#[\Override]
92
99
public function registerRun(TestResult $testResult, TestInfo $info): TestRunInfo
93
100
{
94
101
$testCaseId = $this->buildTestCaseId($testResult, $info);
Original file line number Diff line number Diff line change
@@ -90,6 +90,7 @@ private function loadConfigData(?string $configFile): array
90
90
return [];
91
91
}
92
92
93
+
#[\Override]
93
94
public function bootstrap(Configuration $configuration, Facade $facade, ParameterCollection $parameters): void
94
95
{
95
96
$configSource = $parameters->has('config')
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ public function __construct(
17
17
) {
18
18
}
19
19
20
+
#[\Override]
20
21
public function notify(ConsideredRisky $event): void
21
22
{
22
23
$test = $event->test();
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ public function __construct(
17
17
) {
18
18
}
19
19
20
+
#[\Override]
20
21
public function notify(Errored $event): void
21
22
{
22
23
$test = $event->test();
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ public function __construct(
17
17
) {
18
18
}
19
19
20
+
#[\Override]
20
21
public function notify(Failed $event): void
21
22
{
22
23
$test = $event->test();
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ public function __construct(
16
16
) {
17
17
}
18
18
19
+
#[\Override]
19
20
public function notify(Finished $event): void
20
21
{
21
22
$test = $event->test();
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4