mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
20 lines
264 B
PHP
20 lines
264 B
PHP
<?php
|
|
|
|
dataset('bound.closure', function () {
|
|
yield function () {
|
|
return 1;
|
|
};
|
|
yield function () {
|
|
return 2;
|
|
};
|
|
});
|
|
|
|
dataset('bound.array', [
|
|
function () {
|
|
return 1;
|
|
},
|
|
function () {
|
|
return 2;
|
|
},
|
|
]);
|