mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix: type checking
This commit is contained in:
@ -18,16 +18,13 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1.0",
|
"php": "^8.1.0",
|
||||||
"brianium/paratest": "^7.1.0",
|
"brianium/paratest": "^7.1.1",
|
||||||
"nunomaduro/collision": "^7.1.0",
|
"nunomaduro/collision": "^7.1.0",
|
||||||
"nunomaduro/termwind": "^1.15.1",
|
"nunomaduro/termwind": "^1.15.1",
|
||||||
"pestphp/pest-plugin": "^2.0.0",
|
"pestphp/pest-plugin": "^2.0.0",
|
||||||
"pestphp/pest-plugin-arch": "^2.0.0",
|
"pestphp/pest-plugin-arch": "^2.0.0",
|
||||||
"phpunit/phpunit": "^10.0.16"
|
"phpunit/phpunit": "^10.0.16"
|
||||||
},
|
},
|
||||||
"conflict": {
|
|
||||||
"brianium/paratest": "<7.0.6"
|
|
||||||
},
|
|
||||||
"version": "2.x-dev",
|
"version": "2.x-dev",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|||||||
@ -55,7 +55,6 @@ final class StateGenerator
|
|||||||
$state->add(TestResult::fromTestCase(
|
$state->add(TestResult::fromTestCase(
|
||||||
$riskyEvent->test(),
|
$riskyEvent->test(),
|
||||||
TestResult::RISKY,
|
TestResult::RISKY,
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
ThrowableBuilder::from(new TestOutcome($riskyEvent->message()))
|
ThrowableBuilder::from(new TestOutcome($riskyEvent->message()))
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -71,7 +70,6 @@ final class StateGenerator
|
|||||||
$state->add(TestResult::fromTestCase(
|
$state->add(TestResult::fromTestCase(
|
||||||
$testResultEvent->test(),
|
$testResultEvent->test(),
|
||||||
TestResult::SKIPPED,
|
TestResult::SKIPPED,
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
ThrowableBuilder::from(new SkippedWithMessageException($testResultEvent->message()))
|
ThrowableBuilder::from(new SkippedWithMessageException($testResultEvent->message()))
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -140,13 +138,11 @@ final class StateGenerator
|
|||||||
for ($i = 0; $i < $passedTests; $i++) {
|
for ($i = 0; $i < $passedTests; $i++) {
|
||||||
$state->add(TestResult::fromTestCase(
|
$state->add(TestResult::fromTestCase(
|
||||||
new TestMethod(
|
new TestMethod(
|
||||||
/** @phpstan-ignore-next-line */
|
"$i", // @phpstan-ignore-line
|
||||||
"$i",
|
'', // @phpstan-ignore-line
|
||||||
/** @phpstan-ignore-next-line */
|
|
||||||
'',
|
|
||||||
'',
|
'',
|
||||||
1,
|
1,
|
||||||
TestDoxBuilder::fromClassNameAndMethodName('', ''),
|
TestDoxBuilder::fromClassNameAndMethodName('', ''), // @phpstan-ignore-line
|
||||||
MetadataCollection::fromArray([]),
|
MetadataCollection::fromArray([]),
|
||||||
TestDataCollection::fromArray([])
|
TestDataCollection::fromArray([])
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user