Renamed DatasetAlreadyExists exception

This commit is contained in:
Fabio Ivona
2022-09-22 11:01:31 +02:00
parent 98b04632ce
commit db00fc8c09
3 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ declare(strict_types=1);
namespace Pest\Repositories;
use Closure;
use Pest\Exceptions\DatasetAlreadyExist;
use Pest\Exceptions\DatasetAlreadyExists;
use Pest\Exceptions\DatasetDoesNotExist;
use Pest\Exceptions\ShouldNotHappen;
use SebastianBergmann\Exporter\Exporter;
@ -43,7 +43,7 @@ final class DatasetsRepository
$datasetKey = "$scope".self::SEPARATOR."$name";
if (array_key_exists("$datasetKey", self::$datasets)) {
throw new DatasetAlreadyExist($name, $scope);
throw new DatasetAlreadyExists($name, $scope);
}
self::$datasets[$datasetKey] = $data;