better dataset arguments mismatch message

This commit is contained in:
Fabio Ivona
2023-03-18 23:58:09 +01:00
parent 0bf051610d
commit 9de85175db
2 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace Pest\Exceptions;
use Exception;
final class DatasetArgsCountMismatch extends Exception
{
public function __construct(string $dataName)
{
parent::__construct(sprintf('Number of arguments mismatch between test and dataset [%s]', $dataName));
}
}