Datasets can now access the test case and are executed after the setup method has run.

This commit is contained in:
luke
2021-07-28 10:39:39 +01:00
parent 252f9a0e46
commit d8fae6d689
4 changed files with 43 additions and 2 deletions

11
tests/Datasets/Bound.php Normal file
View 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; },
]);