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