mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
Merge branch 'master' into datasets-scope
# Conflicts: # tests/.snapshots/success.txt
This commit is contained in:
@ -156,7 +156,7 @@ final class DatasetsRepository
|
||||
}
|
||||
|
||||
if ($datasets[$index] instanceof Traversable) {
|
||||
$datasets[$index] = iterator_to_array($datasets[$index]);
|
||||
$datasets[$index] = iterator_to_array($datasets[$index], false);
|
||||
}
|
||||
|
||||
// @phpstan-ignore-next-line
|
||||
|
||||
@ -84,6 +84,9 @@ final class TestRepository
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the test case factory from the given filename.
|
||||
*/
|
||||
public function get(string $filename): TestCaseFactory
|
||||
{
|
||||
return $this->testCases[$filename];
|
||||
|
||||
Reference in New Issue
Block a user