diff --git a/src/Exceptions/AfterAllAlreadyExist.php b/src/Exceptions/AfterAllAlreadyExist.php index f74e8b51..5aea0c55 100644 --- a/src/Exceptions/AfterAllAlreadyExist.php +++ b/src/Exceptions/AfterAllAlreadyExist.php @@ -19,6 +19,6 @@ final class AfterAllAlreadyExist extends InvalidArgumentException implements Exc */ public function __construct(string $filename) { - parent::__construct(sprintf('The afterAll already exist in the filename `%s`.', $filename)); + parent::__construct(sprintf('The afterAll already exists in the filename `%s`.', $filename)); } } diff --git a/src/Exceptions/AfterEachAlreadyExist.php b/src/Exceptions/AfterEachAlreadyExist.php index 43faa817..cbdd4a7c 100644 --- a/src/Exceptions/AfterEachAlreadyExist.php +++ b/src/Exceptions/AfterEachAlreadyExist.php @@ -19,6 +19,6 @@ final class AfterEachAlreadyExist extends InvalidArgumentException implements Ex */ public function __construct(string $filename) { - parent::__construct(sprintf('The afterEach already exist in the filename `%s`.', $filename)); + parent::__construct(sprintf('The afterEach already exists in the filename `%s`.', $filename)); } } diff --git a/src/Exceptions/BeforeEachAlreadyExist.php b/src/Exceptions/BeforeEachAlreadyExist.php index fba76297..2425ce7f 100644 --- a/src/Exceptions/BeforeEachAlreadyExist.php +++ b/src/Exceptions/BeforeEachAlreadyExist.php @@ -19,6 +19,6 @@ final class BeforeEachAlreadyExist extends InvalidArgumentException implements E */ public function __construct(string $filename) { - parent::__construct(sprintf('The beforeEach already exist in the filename `%s`.', $filename)); + parent::__construct(sprintf('The beforeEach already exists in the filename `%s`.', $filename)); } } diff --git a/src/Exceptions/DatasetAlreadyExists.php b/src/Exceptions/DatasetAlreadyExists.php index 4e42397a..bef2753d 100644 --- a/src/Exceptions/DatasetAlreadyExists.php +++ b/src/Exceptions/DatasetAlreadyExists.php @@ -19,6 +19,6 @@ final class DatasetAlreadyExists extends InvalidArgumentException implements Exc */ public function __construct(string $name, string $scope) { - parent::__construct(sprintf('A dataset with the name `%s` already exist in scope [%s].', $name, $scope)); + parent::__construct(sprintf('A dataset with the name `%s` already exists in scope [%s].', $name, $scope)); } } diff --git a/src/Exceptions/FileOrFolderNotFound.php b/src/Exceptions/FileOrFolderNotFound.php index bd59ac2a..8e6a08d6 100644 --- a/src/Exceptions/FileOrFolderNotFound.php +++ b/src/Exceptions/FileOrFolderNotFound.php @@ -19,6 +19,6 @@ final class FileOrFolderNotFound extends InvalidArgumentException implements Exc */ public function __construct(string $filename) { - parent::__construct(sprintf('The file or folder with the name `%s` not found.', $filename)); + parent::__construct(sprintf('The file or folder with the name `%s` could not be found.', $filename)); } } diff --git a/src/Exceptions/TestAlreadyExist.php b/src/Exceptions/TestAlreadyExist.php index 75f4a420..07ff6a72 100644 --- a/src/Exceptions/TestAlreadyExist.php +++ b/src/Exceptions/TestAlreadyExist.php @@ -19,6 +19,6 @@ final class TestAlreadyExist extends InvalidArgumentException implements Excepti */ public function __construct(string $fileName, string $description) { - parent::__construct(sprintf('A test with the description `%s` already exist in the filename `%s`.', $description, $fileName)); + parent::__construct(sprintf('A test with the description `%s` already exists in the filename `%s`.', $description, $fileName)); } } diff --git a/src/Exceptions/TestDescriptionMissing.php b/src/Exceptions/TestDescriptionMissing.php index 67f75930..b9fcc684 100644 --- a/src/Exceptions/TestDescriptionMissing.php +++ b/src/Exceptions/TestDescriptionMissing.php @@ -19,6 +19,6 @@ final class TestDescriptionMissing extends InvalidArgumentException implements E */ public function __construct(string $fileName) { - parent::__construct(sprintf('Test misses description in the filename `%s`.', $fileName)); + parent::__construct(sprintf('Test description is missing in the filename `%s`.', $fileName)); } } diff --git a/tests/Features/DatasetsTests.php b/tests/Features/DatasetsTests.php index 5d1b1ca1..f6030926 100644 --- a/tests/Features/DatasetsTests.php +++ b/tests/Features/DatasetsTests.php @@ -19,7 +19,7 @@ it('throws exception if dataset does not exist', function () { it('throws exception if dataset already exist', function () { DatasetsRepository::set('second', [[]], __DIR__); $this->expectException(DatasetAlreadyExists::class); - $this->expectExceptionMessage('A dataset with the name `second` already exist in scope ['.__DIR__.'].'); + $this->expectExceptionMessage('A dataset with the name `second` already exists in scope ['.__DIR__.'].'); DatasetsRepository::set('second', [[]], __DIR__); }); diff --git a/tests/Unit/TestSuite.php b/tests/Unit/TestSuite.php index 3c4ff2a1..eb033d0c 100644 --- a/tests/Unit/TestSuite.php +++ b/tests/Unit/TestSuite.php @@ -13,7 +13,7 @@ it('does not allow to add the same test description twice', function () { $testSuite->tests->set($method); })->throws( TestAlreadyExist::class, - sprintf('A test with the description `%s` already exist in the filename `%s`.', 'bar', 'foo'), + sprintf('A test with the description `%s` already exists in the filename `%s`.', 'bar', 'foo'), ); it('alerts users about tests with arguments but no input', function () {