mirror of
https://github.com/pestphp/pest.git
synced 2026-07-21 17:10:03 +02:00
3927dbfcdf
Errors raised while resolving a test's dataset (missing named dataset, throwing dataset closure) previously crashed the whole run. Now the data provider catches them, wraps them in a DatasetProviderError, and the test method rethrows the original throwable so the affected test fails cleanly with a non-zero exit code while other tests keep running.
12 lines
214 B
PHP
12 lines
214 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
it('passes normally', function () {
|
|
expect(true)->toBeTrue();
|
|
});
|
|
|
|
it('references a missing dataset', function ($value) {
|
|
expect($value)->toBeTruthy();
|
|
})->with('missing');
|