Skip to content

Commit 6a96aed

Browse files
committed
feat: adds [email protected] support
1 parent ae419af commit 6a96aed

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
],
1919
"require": {
2020
"php": "^8.3.0",
21-
"brianium/paratest": "^7.14.2",
21+
"brianium/paratest": "^7.16.0",
2222
"nunomaduro/collision": "^8.8.3",
2323
"nunomaduro/termwind": "^2.3.3",
2424
"pestphp/pest-plugin": "^4.0.0",
2525
"pestphp/pest-plugin-arch": "^4.0.0",
2626
"pestphp/pest-plugin-mutate": "^4.0.1",
27-
"pestphp/pest-plugin-profanity": "^4.2.0",
28-
"phpunit/phpunit": "^12.4.4",
27+
"pestphp/pest-plugin-profanity": "^4.2.1",
28+
"phpunit/phpunit": "^12.5.3",
2929
"symfony/process": "^7.4.0|^8.0.0"
3030
},
3131
"conflict": {
3232
"filp/whoops": "<2.18.3",
33-
"phpunit/phpunit": ">12.4.4",
33+
"phpunit/phpunit": ">12.5.3",
3434
"sebastian/exporter": "<7.0.0",
3535
"webmozart/assert": "<1.11.0"
3636
},
@@ -58,7 +58,7 @@
5858
"pestphp/pest-dev-tools": "^4.0.0",
5959
"pestphp/pest-plugin-browser": "^4.1.1",
6060
"pestphp/pest-plugin-type-coverage": "^4.0.3",
61-
"psy/psysh": "^0.12.15"
61+
"psy/psysh": "^0.12.17"
6262
},
6363
"minimum-stability": "dev",
6464
"prefer-stable": true,

rector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
use Rector\CodingStyle\Rector\FunctionLike\FunctionLikeToFirstClassCallableRector;
65
use Rector\Config\RectorConfig;
76
use Rector\TypeDeclaration\Rector\ClassMethod\NarrowObjectReturnTypeRector;
87
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector;
8+
use Rector\CodingStyle\Rector\ArrowFunction\ArrowFunctionDelegatingCallToFirstClassCallableRector;
99

1010
return RectorConfig::configure()
1111
->withPaths([
@@ -14,7 +14,7 @@
1414
->withSkip([
1515
__DIR__.'/src/Plugins/Parallel/Paratest/WrapperRunner.php',
1616
ReturnNeverTypeRector::class,
17-
FunctionLikeToFirstClassCallableRector::class,
17+
ArrowFunctionDelegatingCallToFirstClassCallableRector::class,
1818
NarrowObjectReturnTypeRector::class,
1919
])
2020
->withPreparedSets(

src/Pest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
function version(): string
88
{
9-
return '4.1.6';
9+
return '4.2.0';
1010
}
1111

1212
function testDirectory(string $file = ''): string

src/Plugins/Help.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ private function getContent(): array
9999
{
100100
$helpReflection = new PHPUnitHelp;
101101

102+
// @phpstan-ignore-next-line
102103
$content = (fn (): array => $this->elements())->call($helpReflection);
103104

104105
$content['Configuration'] = [...[[

tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Pest Testing Framework 4.1.6.
2+
Pest Testing Framework 4.2.0.
33

44
USAGE: pest <file> [options]
55

@@ -27,6 +27,7 @@
2727
--pr .... Output to standard output tests with the given pull request number
2828
--pull-request Output to standard output tests with the given pull request number (alias for --pr)
2929
--retry Run non-passing tests first and stop execution upon first error or failure
30+
--all .................... Ignore test selection from XML configuration file
3031
--list-suites ................................... List available test suites
3132
--testsuite [name] ......... Only run tests from the specified test suite(s)
3233
--exclude-testsuite [name] .. Exclude tests from the specified test suite(s)
@@ -138,6 +139,7 @@
138139
--only-summary-for-coverage-text Option for code coverage report in text format: only show summary
139140
--show-uncovered-for-coverage-text Option for code coverage report in text format: show uncovered files
140141
--coverage-xml [dir] . Write code coverage report in XML format to directory
142+
--exclude-source-from-xml-coverage Exclude [source] element from code coverage report in XML format
141143
--warm-coverage-cache ........................... Warm static analysis cache
142144
--coverage-filter [dir] ........... Include [dir] in code coverage reporting
143145
--path-coverage .......... Report path coverage in addition to line coverage
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
Pest Testing Framework 4.1.6.
2+
Pest Testing Framework 4.2.0.
33

tests/Visual/Parallel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
test('parallel', function () use ($run) {
1818
expect($run('--exclude-group=integration'))
19-
->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 39 todos, 26 skipped, 1178 passed (2790 assertions)')
19+
->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 39 todos, 26 skipped, 1177 passed (2790 assertions)')
2020
->toContain('Parallel: 3 processes');
2121
})->skipOnWindows();
2222

0 commit comments

Comments
 (0)