From 23bd98bf57b7c0956f903896b4411dc1d718474a Mon Sep 17 00:00:00 2001 From: Esteban De la Rosa Date: Mon, 1 Feb 2021 01:51:33 -0400 Subject: [PATCH] (fix): typo in tests description --- tests/MastermindTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/MastermindTest.php b/tests/MastermindTest.php index ab94ff3..53160af 100644 --- a/tests/MastermindTest.php +++ b/tests/MastermindTest.php @@ -39,13 +39,13 @@ expect($mastermind->getCode())->toBe($code); }); -it('validates the given guess has 4 colors in order to create an instance', function () { +it('validates the given guess has 4 colors in order to get hints', function () { Mastermind::withRandomCode()->getHints([ Color::BLUE, Color::YELLOW, Color::PINK ]); })->throws(\InvalidArgumentException::class, 'The code should have a length of 4'); -it('validates the given guess has only valid colors in order to create an instance', function () { +it('validates the given guess has only valid colors in order to get hints', function () { Mastermind::withRandomCode()->getHints([ Color::BLUE, Color::YELLOW, 'ASD', Color::PINK ]);