mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Merge pull request #233 from misaert/feat-authorize-associative-array-for-with
fix: authorize string as key for datasets
This commit is contained in:
@ -51,7 +51,7 @@ final class Datasets
|
|||||||
/**
|
/**
|
||||||
* Resolves the current dataset to an array value.
|
* Resolves the current dataset to an array value.
|
||||||
*
|
*
|
||||||
* @param Traversable<int, mixed>|Closure|iterable<int, mixed>|string|null $data
|
* @param Traversable<int|string, mixed>|Closure|iterable<int|string, mixed>|string|null $data
|
||||||
*
|
*
|
||||||
* @return array<string, mixed>
|
* @return array<string, mixed>
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -59,7 +59,7 @@ final class TestCaseFactory
|
|||||||
/**
|
/**
|
||||||
* Holds the dataset, if any.
|
* Holds the dataset, if any.
|
||||||
*
|
*
|
||||||
* @var Closure|iterable<int, mixed>|string|null
|
* @var Closure|iterable<int|string, mixed>|string|null
|
||||||
*/
|
*/
|
||||||
public $dataset;
|
public $dataset;
|
||||||
|
|
||||||
|
|||||||
@ -78,7 +78,7 @@ final class TestCall
|
|||||||
* Runs the current test multiple times with
|
* Runs the current test multiple times with
|
||||||
* each item of the given `iterable`.
|
* each item of the given `iterable`.
|
||||||
*
|
*
|
||||||
* @param \Closure|iterable<int, mixed>|string $data
|
* @param \Closure|iterable<int|string, mixed>|string $data
|
||||||
*/
|
*/
|
||||||
public function with($data): TestCall
|
public function with($data): TestCall
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user