mirror of
https://github.com/pestphp/pest.git
synced 2026-04-20 22:20:17 +02:00
Cleanup
This commit is contained in:
@ -361,7 +361,7 @@ trait Testable
|
||||
|
||||
$parameterType = is_string($argumentIndex)
|
||||
? ($testParameterTypesByName[$argumentIndex] ?? 'mixed')
|
||||
: ($testParameterTypes[$argumentIndex] ?? 'mixed');
|
||||
: $testParameterTypes[$argumentIndex];
|
||||
|
||||
if (in_array($parameterType, [Closure::class, 'callable', 'mixed'])) {
|
||||
continue;
|
||||
|
||||
@ -458,7 +458,6 @@ test('after describe block with named dataset', function (...$args) {
|
||||
expect($args)->toBe(['after']);
|
||||
})->with('after-describe');
|
||||
|
||||
// Named parameters on datasets
|
||||
test('named parameters match by parameter name', function (string $email, string $name) {
|
||||
expect($name)->toBe('Taylor');
|
||||
expect($email)->toBe('taylor@laravel.com');
|
||||
|
||||
Reference in New Issue
Block a user