mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Datasets can now access the test case and are executed after the setup method has run.
This commit is contained in:
11
tests/Datasets/Bound.php
Normal file
11
tests/Datasets/Bound.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
dataset('bound.closure', function () {
|
||||
yield function () { return 1; };
|
||||
yield function () { return 2; };
|
||||
});
|
||||
|
||||
dataset('bound.array', [
|
||||
function () { return 1; },
|
||||
function () { return 2; },
|
||||
]);
|
||||
Reference in New Issue
Block a user