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