mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
[feat] scoped datasets
This commit is contained in:
12
tests/Features/ScopedDatasets/TestFileOutOfScope.php
Normal file
12
tests/Features/ScopedDatasets/TestFileOutOfScope.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
$state = new stdClass();
|
||||
$state->text = '';
|
||||
test('uses dataset', function ($value) use ($state) {
|
||||
$state->text .= $value;
|
||||
expect(true)->toBe(true);
|
||||
})->with('numbers.array');
|
||||
|
||||
test('the right dataset is taken', function () use ($state) {
|
||||
expect($state->text)->toBe('12');
|
||||
});
|
||||
Reference in New Issue
Block a user