From 230a613c537f316df455ae67be5cb5b928a89d58 Mon Sep 17 00:00:00 2001 From: resu-xuniL Date: Tue, 7 Jul 2026 23:32:37 +0200 Subject: [PATCH] Capitalise `testdox` strings --- .../AnnalynsInfiltrationTest.php | 60 +++--- .../concept/city-office/CityOfficeTest.php | 24 +-- .../language-list/LanguageListTest.php | 24 +-- exercises/concept/pizza-pi/PizzaPiTest.php | 10 +- .../sweethearts/HighSchoolSweetheartTest.php | 14 +- .../windowing-system/ProgramWindowTest.php | 18 +- .../affine-cipher/AffineCipherTest.php | 32 +-- .../practice/alphametics/AlphameticsTest.php | 20 +- .../atbash-cipher/AtbashCipherTest.php | 28 +-- .../BafflingBirthdaysTest.php | 34 ++-- .../BinarySearchTreeTest.php | 20 +- exercises/practice/bob/BobTest.php | 50 ++--- .../practice/bottle-song/BottleSongTest.php | 14 +- exercises/practice/bowling/BowlingTest.php | 62 +++--- exercises/practice/change/ChangeTest.php | 26 +-- .../circular-buffer/CircularBufferTest.php | 28 +-- exercises/practice/clock/ClockTest.php | 82 ++++---- .../CollatzConjectureTest.php | 12 +- exercises/practice/connect/ConnectTest.php | 8 +- .../crypto-square/CryptoSquareTest.php | 4 +- exercises/practice/etl/EtlTest.php | 8 +- .../flatten-array/FlattenArrayTest.php | 16 +- .../practice/food-chain/FoodChainTest.php | 20 +- .../practice/game-of-life/GameOfLifeTest.php | 16 +- exercises/practice/grains/GrainsTest.php | 22 +- exercises/practice/hamming/HammingTest.php | 6 +- exercises/practice/isogram/IsogramTest.php | 28 +-- .../KindergartenGardenTest.php | 34 ++-- .../LargestSeriesProductTest.php | 30 +-- .../practice/linked-list/LinkedListTest.php | 38 ++-- exercises/practice/list-ops/ListOpsTest.php | 44 ++-- exercises/practice/luhn/LuhnTest.php | 8 +- exercises/practice/markdown/MarkdownTest.php | 32 +-- exercises/practice/matrix/MatrixTest.php | 16 +- exercises/practice/meetup/MeetupTest.php | 190 +++++++++--------- exercises/practice/nth-prime/NthPrimeTest.php | 10 +- .../PalindromeProductsTest.php | 26 +-- .../practice/phone-number/PhoneNumberTest.php | 36 ++-- exercises/practice/pig-latin/PigLatinTest.php | 46 ++--- .../prime-factors/PrimeFactorsTest.php | 24 +-- exercises/practice/proverb/ProverbTest.php | 12 +- .../practice/queen-attack/QueenAttackTest.php | 26 +-- .../rail-fence-cipher/RailFenceCipherTest.php | 12 +- .../reverse-string/ReverseStringTest.php | 12 +- .../RunLengthEncodingTest.php | 2 +- exercises/practice/say/SayTest.php | 38 ++-- .../secret-handshake/SecretHandshakeTest.php | 18 +- exercises/practice/series/SeriesTest.php | 22 +- .../spiral-matrix/SpiralMatrixTest.php | 12 +- .../practice/square-root/SquareRootTest.php | 14 +- exercises/practice/triangle/TriangleTest.php | 34 ++-- .../practice/twelve-days/TwelveDaysTest.php | 30 +-- exercises/practice/two-fer/TwoFerTest.php | 6 +- .../practice/word-count/WordCountTest.php | 28 +-- exercises/practice/wordy/WordyTest.php | 52 ++--- 55 files changed, 769 insertions(+), 769 deletions(-) diff --git a/exercises/concept/annalyns-infiltration/AnnalynsInfiltrationTest.php b/exercises/concept/annalyns-infiltration/AnnalynsInfiltrationTest.php index f5b82e074..5040d25ab 100644 --- a/exercises/concept/annalyns-infiltration/AnnalynsInfiltrationTest.php +++ b/exercises/concept/annalyns-infiltration/AnnalynsInfiltrationTest.php @@ -13,7 +13,7 @@ public static function setUpBeforeClass(): void /** * @task_id 1 */ - #[TestDox('cannot fast attack when the knight is awake')] + #[TestDox('Cannot fast attack when the knight is awake')] public function testCannotFastAttackWhenKnightIsAwake() { $infiltration = new AnnalynsInfiltration(); @@ -25,7 +25,7 @@ public function testCannotFastAttackWhenKnightIsAwake() /** * @task_id 1 */ - #[TestDox('can fast attack when the knight is asleep')] + #[TestDox('Can fast attack when the knight is asleep')] public function testCanFastAttackWhenKnightIsAsleep() { $infiltration = new AnnalynsInfiltration(); @@ -37,7 +37,7 @@ public function testCanFastAttackWhenKnightIsAsleep() /** * @task_id 2 */ - #[TestDox('cannot spy when everyone is asleep')] + #[TestDox('Cannot spy when everyone is asleep')] public function testCannotSpyWhenEveryoneAsleep() { $infiltration = new AnnalynsInfiltration(); @@ -53,7 +53,7 @@ public function testCannotSpyWhenEveryoneAsleep() /** * @task_id 2 */ - #[TestDox('can spy when only the prisoner is awake')] + #[TestDox('Can spy when only the prisoner is awake')] public function testCanSpyWhenOnlyPrisonerAwake() { $infiltration = new AnnalynsInfiltration(); @@ -69,7 +69,7 @@ public function testCanSpyWhenOnlyPrisonerAwake() /** * @task_id 2 */ - #[TestDox('can spy when only the archer is awake')] + #[TestDox('Can spy when only the archer is awake')] public function testCanSpyWhenOnlyArcherAwake() { $infiltration = new AnnalynsInfiltration(); @@ -85,7 +85,7 @@ public function testCanSpyWhenOnlyArcherAwake() /** * @task_id 2 */ - #[TestDox('can spy when only the knight is awake')] + #[TestDox('Can spy when only the knight is awake')] public function testCanSpyWhenOnlyKnightAwake() { $infiltration = new AnnalynsInfiltration(); @@ -101,7 +101,7 @@ public function testCanSpyWhenOnlyKnightAwake() /** * @task_id 2 */ - #[TestDox('can spy when only the knight is asleep')] + #[TestDox('Can spy when only the knight is asleep')] public function testCanSpyWhenOnlyKnightAsleep() { $infiltration = new AnnalynsInfiltration(); @@ -117,7 +117,7 @@ public function testCanSpyWhenOnlyKnightAsleep() /** * @task_id 2 */ - #[TestDox('can spy when only the prisoner is asleep')] + #[TestDox('Can spy when only the prisoner is asleep')] public function testCanSpyWhenOnlyPrisonerAsleep() { $infiltration = new AnnalynsInfiltration(); @@ -133,7 +133,7 @@ public function testCanSpyWhenOnlyPrisonerAsleep() /** * @task_id 2 */ - #[TestDox('can spy when only the archer is asleep')] + #[TestDox('Can spy when only the archer is asleep')] public function testCanSpyWhenOnlyArcherAsleep() { $infiltration = new AnnalynsInfiltration(); @@ -149,7 +149,7 @@ public function testCanSpyWhenOnlyArcherAsleep() /** * @task_id 2 */ - #[TestDox('can spy when everyone is awake')] + #[TestDox('Can spy when everyone is awake')] public function testCanSpyWhenEveryoneAwake() { $infiltration = new AnnalynsInfiltration(); @@ -165,7 +165,7 @@ public function testCanSpyWhenEveryoneAwake() /** * @task_id 3 */ - #[TestDox('cannot signal the prisoner when everyone is asleep')] + #[TestDox('Cannot signal the prisoner when everyone is asleep')] public function testCannotSignalWhenAllAsleep() { $infiltration = new AnnalynsInfiltration(); @@ -180,7 +180,7 @@ public function testCannotSignalWhenAllAsleep() /** * @task_id 3 */ - #[TestDox('can signal the prisoner when archer is asleep')] + #[TestDox('Can signal the prisoner when archer is asleep')] public function testCanSignalWhenArcherAsleep() { $infiltration = new AnnalynsInfiltration(); @@ -195,7 +195,7 @@ public function testCanSignalWhenArcherAsleep() /** * @task_id 3 */ - #[TestDox('cannot signal the prisoner when prisoner is asleep')] + #[TestDox('Cannot signal the prisoner when prisoner is asleep')] public function testCannotSignalWhenPrisonerAsleep() { $infiltration = new AnnalynsInfiltration(); @@ -210,7 +210,7 @@ public function testCannotSignalWhenPrisonerAsleep() /** * @task_id 3 */ - #[TestDox('cannot signal the prisoner when no one is asleep')] + #[TestDox('Cannot signal the prisoner when no one is asleep')] public function testCannotSignalWhenNoOneAsleep() { $infiltration = new AnnalynsInfiltration(); @@ -225,7 +225,7 @@ public function testCannotSignalWhenNoOneAsleep() /** * @task_id 4 */ - #[TestDox('can liberate the prisoner when no one is awake but dog present')] + #[TestDox('Can liberate the prisoner when no one is awake but dog present')] public function testCanLiberateWhenAllAsleepAndDogPresent() { $infiltration = new AnnalynsInfiltration(); @@ -242,7 +242,7 @@ public function testCanLiberateWhenAllAsleepAndDogPresent() /** * @task_id 4 */ - #[TestDox('can liberate the prisoner when prisoner is awake with dog')] + #[TestDox('Can liberate the prisoner when prisoner is awake with dog')] public function testCanLiberateWhenPrisonerAwakeWithDog() { $infiltration = new AnnalynsInfiltration(); @@ -259,7 +259,7 @@ public function testCanLiberateWhenPrisonerAwakeWithDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when archer is awake with dog')] + #[TestDox('Cannot liberate the prisoner when archer is awake with dog')] public function testCannotLiberateWhenArcherAwakeWithDog() { $infiltration = new AnnalynsInfiltration(); @@ -276,7 +276,7 @@ public function testCannotLiberateWhenArcherAwakeWithDog() /** * @task_id 4 */ - #[TestDox('can liberate the prisoner when only knight awake with dog')] + #[TestDox('Can liberate the prisoner when only knight awake with dog')] public function testCanLiberateWhenKnightAwakeWithDog() { $infiltration = new AnnalynsInfiltration(); @@ -293,7 +293,7 @@ public function testCanLiberateWhenKnightAwakeWithDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when prisoner asleep with dog')] + #[TestDox('Cannot liberate the prisoner when prisoner asleep with dog')] public function testCannotLiberateWhenPrisonerAsleepWithDog() { $infiltration = new AnnalynsInfiltration(); @@ -310,7 +310,7 @@ public function testCannotLiberateWhenPrisonerAsleepWithDog() /** * @task_id 4 */ - #[TestDox('can liberate the prisoner when only archer asleep with dog')] + #[TestDox('Can liberate the prisoner when only archer asleep with dog')] public function testCanLiberateWhenArcherAsleepWithDog() { $infiltration = new AnnalynsInfiltration(); @@ -327,7 +327,7 @@ public function testCanLiberateWhenArcherAsleepWithDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when knight asleep with dog')] + #[TestDox('Cannot liberate the prisoner when knight asleep with dog')] public function testCannotLiberateWhenKnightAsleepWithDog() { $infiltration = new AnnalynsInfiltration(); @@ -344,7 +344,7 @@ public function testCannotLiberateWhenKnightAsleepWithDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when all awake with dog')] + #[TestDox('Cannot liberate the prisoner when all awake with dog')] public function testCannotLiberateWhenAllAwakeWithDog() { $infiltration = new AnnalynsInfiltration(); @@ -361,7 +361,7 @@ public function testCannotLiberateWhenAllAwakeWithDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when no one is awake and no dog present')] + #[TestDox('Cannot liberate the prisoner when no one is awake and no dog present')] public function testCannotLiberateWhenAllAsleepAndNoDogPresent() { $infiltration = new AnnalynsInfiltration(); @@ -378,7 +378,7 @@ public function testCannotLiberateWhenAllAsleepAndNoDogPresent() /** * @task_id 4 */ - #[TestDox('can liberate the prisoner when prisoner is awake without dog')] + #[TestDox('Can liberate the prisoner when prisoner is awake without dog')] public function testCanLiberateWhenPrisonerAwakeWithoutDog() { $infiltration = new AnnalynsInfiltration(); @@ -395,7 +395,7 @@ public function testCanLiberateWhenPrisonerAwakeWithoutDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when archer is awake without dog')] + #[TestDox('Cannot liberate the prisoner when archer is awake without dog')] public function testCannotLiberateWhenArcherAwakeWithoutDog() { $infiltration = new AnnalynsInfiltration(); @@ -412,7 +412,7 @@ public function testCannotLiberateWhenArcherAwakeWithoutDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when only knight awake without dog')] + #[TestDox('Cannot liberate the prisoner when only knight awake without dog')] public function testCannotLiberateWhenKnightAwakeWithoutDog() { $infiltration = new AnnalynsInfiltration(); @@ -429,7 +429,7 @@ public function testCannotLiberateWhenKnightAwakeWithoutDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when prisoner asleep without dog')] + #[TestDox('Cannot liberate the prisoner when prisoner asleep without dog')] public function testCannotLiberateWhenPrisonerAsleepWithoutDog() { $infiltration = new AnnalynsInfiltration(); @@ -446,7 +446,7 @@ public function testCannotLiberateWhenPrisonerAsleepWithoutDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when only archer asleep without dog')] + #[TestDox('Cannot liberate the prisoner when only archer asleep without dog')] public function testCannotLiberateWhenArcherAsleepWithoutDog() { $infiltration = new AnnalynsInfiltration(); @@ -463,7 +463,7 @@ public function testCannotLiberateWhenArcherAsleepWithoutDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when knight asleep without dog')] + #[TestDox('Cannot liberate the prisoner when knight asleep without dog')] public function testCannotLiberateWhenKnightAsleepWithoutDog() { $infiltration = new AnnalynsInfiltration(); @@ -480,7 +480,7 @@ public function testCannotLiberateWhenKnightAsleepWithoutDog() /** * @task_id 4 */ - #[TestDox('cannot liberate the prisoner when all awake without dog')] + #[TestDox('Cannot liberate the prisoner when all awake without dog')] public function testCannotLiberateWhenAllAwakeWithoutDog() { $infiltration = new AnnalynsInfiltration(); diff --git a/exercises/concept/city-office/CityOfficeTest.php b/exercises/concept/city-office/CityOfficeTest.php index 817fb5ef0..db0ec9046 100644 --- a/exercises/concept/city-office/CityOfficeTest.php +++ b/exercises/concept/city-office/CityOfficeTest.php @@ -14,7 +14,7 @@ class CityOfficeTest extends TestCase /** * @task_id 1 */ - #[TestDox('specify a string type for Address::$street')] + #[TestDox('Specify a string type for Address::$street')] public function testTypeOfAddressStreetProperty() { $this->assertProperty( @@ -31,7 +31,7 @@ class_name: Address::class, /** * @task_id 1 */ - #[TestDox('specify a string type for Address::$postal_code')] + #[TestDox('Specify a string type for Address::$postal_code')] public function testTypeOfAddressPostalCodeProperty() { $this->assertProperty( @@ -48,7 +48,7 @@ class_name: Address::class, /** * @task_id 1 */ - #[TestDox('specify a string type for Address::$city')] + #[TestDox('Specify a string type for Address::$city')] public function testTypeOfAddressCityProperty() { $this->assertProperty( @@ -65,7 +65,7 @@ class_name: Address::class, /** * @task_id 2 */ - #[TestDox('specify an int type for Form::blanks length parameter')] + #[TestDox('Specify an int type for Form::blanks length parameter')] public function testParameterTypeOfFormBlanksLengthParameter() { $this->assertMethodParameter( @@ -85,7 +85,7 @@ class_name: Form::class, /** * @task_id 2 */ - #[TestDox('specify an int type for Form::blanks return type')] + #[TestDox('Specify an int type for Form::blanks return type')] public function testParameterTypeOfFormBlanksReturnType() { $this->assertMethodReturnType( @@ -102,7 +102,7 @@ class_name: Form::class, /** * @task_id 3 */ - #[TestDox('specify an int type for Form::letters word parameter')] + #[TestDox('Specify an int type for Form::letters word parameter')] public function testParameterTypeOfFormLettersWordParameter() { $this->assertMethodParameter( @@ -122,7 +122,7 @@ class_name: Form::class, /** * @task_id 3 */ - #[TestDox('specify an int type for Form::letters return type')] + #[TestDox('Specify an int type for Form::letters return type')] public function testParameterTypeOfFormLettersReturnType() { $this->assertMethodReturnType( @@ -139,7 +139,7 @@ class_name: Form::class, /** * @task_id 4 */ - #[TestDox('specify an int type for Form::checkLength word parameter')] + #[TestDox('Specify an int type for Form::checkLength word parameter')] public function testParameterTypeOfFormCheckLengthWordParameter() { $this->assertMethodParameter( @@ -159,7 +159,7 @@ class_name: Form::class, /** * @task_id 4 */ - #[TestDox('specify an int type for Form::checkLength max_length parameter')] + #[TestDox('Specify an int type for Form::checkLength max_length parameter')] public function testParameterTypeOfFormCheckLengthMaxLengthParameter() { $this->assertMethodParameter( @@ -179,7 +179,7 @@ class_name: Form::class, /** * @task_id 4 */ - #[TestDox('specify an int type for Form::checkLength return type')] + #[TestDox('Specify an int type for Form::checkLength return type')] public function testParameterTypeOfFormCheckLengthReturnType() { $this->assertMethodReturnType( @@ -196,7 +196,7 @@ class_name: Form::class, /** * @task_id 5 */ - #[TestDox('specify an Address type for Form::formatAddress address parameter')] + #[TestDox('Specify an Address type for Form::formatAddress address parameter')] public function testParameterTypeOfFormFormatAddressParameter() { $this->assertMethodParameter( @@ -216,7 +216,7 @@ class_name: Form::class, /** * @task_id 5 */ - #[TestDox('specify an int type for Form::checkLength return type')] + #[TestDox('Specify an int type for Form::checkLength return type')] public function testParameterTypeOfFormFormatAddressReturnType() { $this->assertMethodReturnType( diff --git a/exercises/concept/language-list/LanguageListTest.php b/exercises/concept/language-list/LanguageListTest.php index 148f7fd58..9d4a5b21b 100644 --- a/exercises/concept/language-list/LanguageListTest.php +++ b/exercises/concept/language-list/LanguageListTest.php @@ -13,7 +13,7 @@ public static function setUpBeforeClass(): void /** * @task_id 1 */ - #[TestDox('calling language_list without arguments, returns empty array')] + #[TestDox('Calling language_list without arguments, returns empty array')] public function testEmpty() { $language_list = language_list(); @@ -23,7 +23,7 @@ public function testEmpty() /** * @task_id 2 */ - #[TestDox('variadic call to language_list with 1 arg returns args')] + #[TestDox('Variadic call to language_list with 1 arg returns args')] public function testVariadicCallWithOne() { $language_list = language_list('c'); @@ -33,7 +33,7 @@ public function testVariadicCallWithOne() /** * @task_id 2 */ - #[TestDox('variadic call to language_list with 2 arg returns args')] + #[TestDox('Variadic call to language_list with 2 arg returns args')] public function testVariadicCallWithTwo() { $language_list = language_list('c', 'cpp'); @@ -43,7 +43,7 @@ public function testVariadicCallWithTwo() /** * @task_id 2 */ - #[TestDox('variadic call to language_list with 2 arg returns args')] + #[TestDox('Variadic call to language_list with 2 arg returns args')] public function testVariadicCallWithThree() { $language_list = language_list('c', 'cpp', 'php'); @@ -53,7 +53,7 @@ public function testVariadicCallWithThree() /** * @task_id 3 */ - #[TestDox('push new languages to the back of the list')] + #[TestDox('Push new languages to the back of the list')] public function testAddingToLanguageList() { $language_list = language_list('c', 'cpp', 'php'); @@ -64,7 +64,7 @@ public function testAddingToLanguageList() /** * @task_id 3 */ - #[TestDox('when pushing, original is unchanged')] + #[TestDox('When pushing, original is unchanged')] public function testAddingDoesNotMutate() { $language_list = language_list('c', 'cpp', 'php'); @@ -75,7 +75,7 @@ public function testAddingDoesNotMutate() /** * @task_id 4 */ - #[TestDox('remove completed language from the front of the list')] + #[TestDox('Remove completed language from the front of the list')] public function testCompleteLanguageList() { $language_list = language_list('c', 'cpp', 'php'); @@ -86,7 +86,7 @@ public function testCompleteLanguageList() /** * @task_id 4 */ - #[TestDox('when pruning, original is unchanged')] + #[TestDox('When pruning, original is unchanged')] public function testPruningDoesNotMutate() { $language_list = language_list('c', 'cpp', 'php'); @@ -97,7 +97,7 @@ public function testPruningDoesNotMutate() /** * @task_id 5 */ - #[TestDox('index and return the first language')] + #[TestDox('Index and return the first language')] public function testCurrentReturnsTheFirstLanguage() { $language_list = language_list('php'); @@ -108,7 +108,7 @@ public function testCurrentReturnsTheFirstLanguage() /** * @task_id 5 */ - #[TestDox('when getting the first language, original is unchanged')] + #[TestDox('When getting the first language, original is unchanged')] public function testGettingFirstDoesNotMutate() { $language_list = language_list('c', 'cpp', 'php'); @@ -119,7 +119,7 @@ public function testGettingFirstDoesNotMutate() /** * @task_id 6 */ - #[TestDox('the count of the languages in the language list')] + #[TestDox('The count of the languages in the language list')] public function testLanguageListCount() { $language_list = language_list('c', 'cpp', 'php'); @@ -130,7 +130,7 @@ public function testLanguageListCount() /** * @task_id 6 */ - #[TestDox('when getting the language count, original is unchanged')] + #[TestDox('When getting the language count, original is unchanged')] public function testLanguageListCountDoesNotMutate() { $language_list = language_list('c', 'cpp', 'php'); diff --git a/exercises/concept/pizza-pi/PizzaPiTest.php b/exercises/concept/pizza-pi/PizzaPiTest.php index eaebd3733..34782f9a4 100644 --- a/exercises/concept/pizza-pi/PizzaPiTest.php +++ b/exercises/concept/pizza-pi/PizzaPiTest.php @@ -13,7 +13,7 @@ public static function setUpBeforeClass(): void /** * @task_id 1 */ - #[TestDox('determine how much dough is required')] + #[TestDox('Determine how much dough is required')] public function testCalculateDoughRequirement() { $pizza_pi = new PizzaPi(); @@ -25,7 +25,7 @@ public function testCalculateDoughRequirement() /** * @task_id 2 */ - #[TestDox('determine how many cans of sauce are required')] + #[TestDox('Determine how many cans of sauce are required')] public function testCalculateSauceRequirement() { $pizza_pi = new PizzaPi(); @@ -37,7 +37,7 @@ public function testCalculateSauceRequirement() /** * @task_id 3 */ - #[TestDox('determine how many pizzas a cube of cheese can cover')] + #[TestDox('Determine how many pizzas a cube of cheese can cover')] public function testCalculateCheeseCoverage() { $pizza_pi = new PizzaPi(); @@ -49,7 +49,7 @@ public function testCalculateCheeseCoverage() /** * @task_id 4 */ - #[TestDox('determine number of pieces remaining when evenly dividing')] + #[TestDox('Determine number of pieces remaining when evenly dividing')] public function testCalculateLeftOverSlicesWithoutLeftOver() { $pizza_pi = new PizzaPi(); @@ -61,7 +61,7 @@ public function testCalculateLeftOverSlicesWithoutLeftOver() /** * @task_id 4 */ - #[TestDox('determine number of pieces remaining when not evenly dividing')] + #[TestDox('Determine number of pieces remaining when not evenly dividing')] public function testCalculateLeftOverSlicesWithLeftOver() { $pizza_pi = new PizzaPi(); diff --git a/exercises/concept/sweethearts/HighSchoolSweetheartTest.php b/exercises/concept/sweethearts/HighSchoolSweetheartTest.php index 879abc786..831eae45c 100644 --- a/exercises/concept/sweethearts/HighSchoolSweetheartTest.php +++ b/exercises/concept/sweethearts/HighSchoolSweetheartTest.php @@ -13,7 +13,7 @@ public static function setUpBeforeClass(): void /** * @task_id 1 */ - #[TestDox('gets the first letter from a string')] + #[TestDox('Gets the first letter from a string')] public function testFirstLetter() { $sweetheart = new HighSchoolSweetheart(); @@ -23,7 +23,7 @@ public function testFirstLetter() /** * @task_id 1 */ - #[TestDox("getting the first letter doesn't change the case")] + #[TestDox("Getting the first letter doesn't change the case")] public function testFirstLetterDoesNotChangeCase() { $sweetheart = new HighSchoolSweetheart(); @@ -33,7 +33,7 @@ public function testFirstLetterDoesNotChangeCase() /** * @task_id 1 */ - #[TestDox('getting the first letter removes whitespace from the name')] + #[TestDox('Getting the first letter removes whitespace from the name')] public function testFirstLetterRemovesWhitespace() { $sweetheart = new HighSchoolSweetheart(); @@ -43,7 +43,7 @@ public function testFirstLetterRemovesWhitespace() /** * @task_id 2 */ - #[TestDox('gets the first letter and appends a dot')] + #[TestDox('Gets the first letter and appends a dot')] public function testCreatesInitial() { $sweetheart = new HighSchoolSweetheart(); @@ -53,7 +53,7 @@ public function testCreatesInitial() /** * @task_id 2 */ - #[TestDox('creates an uppercase initial')] + #[TestDox('Creates an uppercase initial')] public function testCreatesUppercaseInitial() { $sweetheart = new HighSchoolSweetheart(); @@ -63,7 +63,7 @@ public function testCreatesUppercaseInitial() /** * @task_id 3 */ - #[TestDox('creates a set of initials')] + #[TestDox('Creates a set of initials')] public function testCreatesInitials() { $sweetheart = new HighSchoolSweetheart(); @@ -73,7 +73,7 @@ public function testCreatesInitials() /** * @task_id 4 */ - #[TestDox('creates a set of initials, wrapped in a heart')] + #[TestDox('Creates a set of initials, wrapped in a heart')] public function testPair() { $sweetheart = new HighSchoolSweetheart(); diff --git a/exercises/concept/windowing-system/ProgramWindowTest.php b/exercises/concept/windowing-system/ProgramWindowTest.php index 459e10701..d902482e3 100644 --- a/exercises/concept/windowing-system/ProgramWindowTest.php +++ b/exercises/concept/windowing-system/ProgramWindowTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * @task_id 1 */ - #[TestDox('assert ProgramWindow has a $y property')] + #[TestDox('Assert ProgramWindow has a $y property')] public function testHasPropertyY() { $reflector = new ReflectionClass(ProgramWindow::class); @@ -28,7 +28,7 @@ public function testHasPropertyY() /** * @task_id 1 */ - #[TestDox('assert ProgramWindow has a $x property')] + #[TestDox('Assert ProgramWindow has a $x property')] public function testHasPropertyX() { $reflector = new ReflectionClass(ProgramWindow::class); @@ -41,7 +41,7 @@ public function testHasPropertyX() /** * @task_id 1 */ - #[TestDox('assert ProgramWindow has a $height property')] + #[TestDox('Assert ProgramWindow has a $height property')] public function testHasPropertyHeight() { $reflector = new ReflectionClass(ProgramWindow::class); @@ -54,7 +54,7 @@ public function testHasPropertyHeight() /** * @task_id 1 */ - #[TestDox('assert ProgramWindow has a $width property')] + #[TestDox('Assert ProgramWindow has a $width property')] public function testHasPropertyWidth() { $reflector = new ReflectionClass(ProgramWindow::class); @@ -67,7 +67,7 @@ public function testHasPropertyWidth() /** * @task_id 2 */ - #[TestDox('assert ProgramWindow has a constructor initial values')] + #[TestDox('Assert ProgramWindow has a constructor initial values')] public function testHasConstructorSettingInitialValues() { $window = new ProgramWindow(); @@ -80,7 +80,7 @@ public function testHasConstructorSettingInitialValues() /** * @task_id 3 */ - #[TestDox('assert Size class exists, with constructor, properties')] + #[TestDox('Assert Size class exists, with constructor, properties')] public function testSizeHasConstructorSettingInitialValues() { $size = new Size(300, 700); @@ -91,7 +91,7 @@ public function testSizeHasConstructorSettingInitialValues() /** * @task_id 3 */ - #[TestDox('assert ProgramWindow::resize function exists')] + #[TestDox('Assert ProgramWindow::resize function exists')] public function testProgramWindowResize() { $window = new ProgramWindow(); @@ -104,7 +104,7 @@ public function testProgramWindowResize() /** * @task_id 4 */ - #[TestDox('assert Position class exists, with constructor, properties')] + #[TestDox('Assert Position class exists, with constructor, properties')] public function testPositionHasConstructorSettingInitialValues() { $position = new Position(30, 70); @@ -115,7 +115,7 @@ public function testPositionHasConstructorSettingInitialValues() /** * @task_id 4 */ - #[TestDox('assert ProgramWindow::move function exists')] + #[TestDox('Assert ProgramWindow::move function exists')] public function testProgramWindowMove() { $window = new ProgramWindow(); diff --git a/exercises/practice/affine-cipher/AffineCipherTest.php b/exercises/practice/affine-cipher/AffineCipherTest.php index 8b36cf4a0..4e0927ee9 100644 --- a/exercises/practice/affine-cipher/AffineCipherTest.php +++ b/exercises/practice/affine-cipher/AffineCipherTest.php @@ -24,7 +24,7 @@ public static function setUpBeforeClass(): void /** * uuid 2ee1d9af-1c43-416c-b41b-cefd7d4d2b2a */ - #[TestDox('encode yes')] + #[TestDox('Encode yes')] public function testEncodeYes(): void { $this->assertEquals('xbt', encode('yes', 5, 7)); @@ -33,7 +33,7 @@ public function testEncodeYes(): void /** * uuid 785bade9-e98b-4d4f-a5b0-087ba3d7de4b */ - #[TestDox('encode no')] + #[TestDox('Encode no')] public function testEncodeNo(): void { $this->assertEquals('fu', encode('no', 15, 18)); @@ -42,7 +42,7 @@ public function testEncodeNo(): void /** * uuid 2854851c-48fb-40d8-9bf6-8f192ed25054 */ - #[TestDox('encode OMG')] + #[TestDox('Encode OMG')] public function testEncodeOMG(): void { $this->assertEquals('lvz', encode('OMG', 21, 3)); @@ -51,7 +51,7 @@ public function testEncodeOMG(): void /** * uuid bc0c1244-b544-49dd-9777-13a770be1bad */ - #[TestDox('encode O M G')] + #[TestDox('Encode O M G')] public function testEncodeOMGWithSpaces(): void { $this->assertEquals('hjp', encode('O M G', 25, 47)); @@ -60,7 +60,7 @@ public function testEncodeOMGWithSpaces(): void /** * uuid 381a1a20-b74a-46ce-9277-3778625c9e27 */ - #[TestDox('encode mindblowingly')] + #[TestDox('Encode mindblowingly')] public function testEncodemindblowingly(): void { $this->assertEquals('rzcwa gnxzc dgt', encode('mindblowingly', 11, 15)); @@ -69,7 +69,7 @@ public function testEncodemindblowingly(): void /** * uuid 6686f4e2-753b-47d4-9715-876fdc59029d */ - #[TestDox('encode numbers')] + #[TestDox('Encode numbers')] public function testEncodenumbers(): void { $this->assertEquals( @@ -81,7 +81,7 @@ public function testEncodenumbers(): void /** * uuid ae23d5bd-30a8-44b6-afbe-23c8c0c7faa3 */ - #[TestDox('encode deep thought')] + #[TestDox('Encode deep thought')] public function testEncodeDeepThought(): void { $this->assertEquals('iynia fdqfb ifje', encode('Truth is fiction.', 5, 17)); @@ -90,7 +90,7 @@ public function testEncodeDeepThought(): void /** * uuid c93a8a4d-426c-42ef-9610-76ded6f7ef57 */ - #[TestDox('encode all the letters')] + #[TestDox('Encode all the letters')] public function testEncodeAllTheLetters(): void { $this->assertEquals( @@ -102,7 +102,7 @@ public function testEncodeAllTheLetters(): void /** * uuid 0673638a-4375-40bd-871c-fb6a2c28effb */ - #[TestDox('encode with a not coprime to m')] + #[TestDox('Encode with a not coprime to m')] public function testEncodeWithANotCoprimeToM(): void { $this->expectException(Exception::class); @@ -115,7 +115,7 @@ public function testEncodeWithANotCoprimeToM(): void /** * uuid 3f0ac7e2-ec0e-4a79-949e-95e414953438 */ - #[TestDox('decode exercism')] + #[TestDox('Decode exercism')] public function testDecodeExercism(): void { $this->assertEquals('exercism', decode('tytgn fjr', 3, 7)); @@ -124,7 +124,7 @@ public function testDecodeExercism(): void /** * uuid 241ee64d-5a47-4092-a5d7-7939d259e077 */ - #[TestDox('decode a sentence')] + #[TestDox('Decode a sentence')] public function testDecodeASentence(): void { $this->assertEquals( @@ -136,7 +136,7 @@ public function testDecodeASentence(): void /** * uuid 33fb16a1-765a-496f-907f-12e644837f5e */ - #[TestDox('decode numbers')] + #[TestDox('Decode numbers')] public function testDecodeNumbers(): void { $this->assertEquals( @@ -148,7 +148,7 @@ public function testDecodeNumbers(): void /** * uuid 20bc9dce-c5ec-4db6-a3f1-845c776bcbf7 */ - #[TestDox('decode all the letters')] + #[TestDox('Decode all the letters')] public function testDecodeAllTheLetters(): void { $this->assertEquals( @@ -160,7 +160,7 @@ public function testDecodeAllTheLetters(): void /** * uuid 623e78c0-922d-49c5-8702-227a3e8eaf81 */ - #[TestDox('decode with no spaces in input')] + #[TestDox('Decode with no spaces in input')] public function testDecodeWithNoSpacesInInput(): void { $this->assertEquals( @@ -172,7 +172,7 @@ public function testDecodeWithNoSpacesInInput(): void /** * uuid 58fd5c2a-1fd9-4563-a80a-71cff200f26f */ - #[TestDox('decode with too many spaces')] + #[TestDox('Decode with too many spaces')] public function testDecodeWithTooManySpaces(): void { $this->assertEquals( @@ -184,7 +184,7 @@ public function testDecodeWithTooManySpaces(): void /** * uuid b004626f-c186-4af9-a3f4-58f74cdb86d5 */ - #[TestDox('decode with a not coprime to m')] + #[TestDox('Decode with a not coprime to m')] public function testDecodeWithANotCoprimeToM(): void { $this->expectException(Exception::class); diff --git a/exercises/practice/alphametics/AlphameticsTest.php b/exercises/practice/alphametics/AlphameticsTest.php index cb1ba6cde..313f4595a 100644 --- a/exercises/practice/alphametics/AlphameticsTest.php +++ b/exercises/practice/alphametics/AlphameticsTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid e0c08b07-9028-4d5f-91e1-d178fead8e1a */ - #[TestDox('puzzle with three letters')] + #[TestDox('Puzzle with three letters')] public function testSolveThreeLetterPuzzle(): void { $alphametics = new Alphametics(); @@ -25,7 +25,7 @@ public function testSolveThreeLetterPuzzle(): void /** * uuid a504ee41-cb92-4ec2-9f11-c37e95ab3f25 */ - #[TestDox('solution must have unique value for each letter')] + #[TestDox('Solution must have unique value for each letter')] public function testSolutionsMustHaveUniqueValuesForLetters(): void { $alphametics = new Alphametics(); @@ -35,7 +35,7 @@ public function testSolutionsMustHaveUniqueValuesForLetters(): void /** * uuid 4e3b81d2-be7b-4c5c-9a80-cd72bc6d465a */ - #[TestDox('leading zero solution is invalid')] + #[TestDox('Leading zero solution is invalid')] public function testLeadingZerosAreInvalid(): void { $alphametics = new Alphametics(); @@ -45,7 +45,7 @@ public function testLeadingZerosAreInvalid(): void /** * uuid 8a3e3168-d1ee-4df7-94c7-b9c54845ac3a */ - #[TestDox('puzzle with two digits final carry')] + #[TestDox('Puzzle with two digits final carry')] public function testPuzzleWithTwoDigitsFinalCarry(): void { $alphametics = new Alphametics(); @@ -56,7 +56,7 @@ public function testPuzzleWithTwoDigitsFinalCarry(): void /** * uuid a9630645-15bd-48b6-a61e-d85c4021cc09 */ - #[TestDox('puzzle with four letters')] + #[TestDox('Puzzle with four letters')] public function testPuzzleWithFourLetters(): void { $alphametics = new Alphametics(); @@ -67,7 +67,7 @@ public function testPuzzleWithFourLetters(): void /** * uuid 3d905a86-5a52-4e4e-bf80-8951535791bd */ - #[TestDox('puzzle with six letters')] + #[TestDox('Puzzle with six letters')] public function testPuzzleWithSixLetters(): void { $alphametics = new Alphametics(); @@ -78,7 +78,7 @@ public function testPuzzleWithSixLetters(): void /** * uuid 4febca56-e7b7-4789-97b9-530d09ba95f0 */ - #[TestDox('puzzle with seven letters')] + #[TestDox('Puzzle with seven letters')] public function testPuzzleWithSevenLetter(): void { $alphametics = new Alphametics(); @@ -89,7 +89,7 @@ public function testPuzzleWithSevenLetter(): void /** * uuid 12125a75-7284-4f9a-a5fa-191471e0d44f */ - #[TestDox('puzzle with eight letters')] + #[TestDox('Puzzle with eight letters')] public function testPuzzleWithEightLetters(): void { $alphametics = new Alphametics(); @@ -100,7 +100,7 @@ public function testPuzzleWithEightLetters(): void /** * uuid fb05955f-38dc-477a-a0b6-5ef78969fffa */ - #[TestDox('puzzle with ten letters')] + #[TestDox('Puzzle with ten letters')] public function testPuzzleWithTenLetters(): void { $alphametics = new Alphametics(); @@ -122,7 +122,7 @@ public function testPuzzleWithTenLetters(): void /** * uuid 9a101e81-9216-472b-b458-b513a7adacf7 */ - #[TestDox('puzzle with ten letters and 199 addends')] + #[TestDox('Puzzle with ten letters and 199 addends')] public function testPuzzleWithTenLettersAnd199Addends(): void { $alphametics = new Alphametics(); diff --git a/exercises/practice/atbash-cipher/AtbashCipherTest.php b/exercises/practice/atbash-cipher/AtbashCipherTest.php index 16b800624..5416f72af 100644 --- a/exercises/practice/atbash-cipher/AtbashCipherTest.php +++ b/exercises/practice/atbash-cipher/AtbashCipherTest.php @@ -18,7 +18,7 @@ public static function setUpBeforeClass(): void /** * uuid 2f47ebe1-eab9-4d6b-b3c6-627562a31c77 */ - #[TestDox('encode yes')] + #[TestDox('Encode yes')] public function testEncodeYes(): void { $this->assertEquals('bvh', encode('yes')); @@ -27,7 +27,7 @@ public function testEncodeYes(): void /** * uuid b4ffe781-ea81-4b74-b268-cc58ba21c739 */ - #[TestDox('encode no')] + #[TestDox('Encode no')] public function testEncodeNo(): void { $this->assertEquals('ml', encode('no')); @@ -36,7 +36,7 @@ public function testEncodeNo(): void /** * uuid 10e48927-24ab-4c4d-9d3f-3067724ace00 */ - #[TestDox('encode OMG')] + #[TestDox('Encode OMG')] public function testEncodeOmg(): void { $this->assertEquals('lnt', encode('OMG')); @@ -45,7 +45,7 @@ public function testEncodeOmg(): void /** * uuid d59b8bc3-509a-4a9a-834c-6f501b98750b */ - #[TestDox('encode spaces')] + #[TestDox('Encode spaces')] public function testEncodeOmgWithSpaces(): void { $this->assertEquals('lnt', encode('O M G')); @@ -54,7 +54,7 @@ public function testEncodeOmgWithSpaces(): void /** * uuid 31d44b11-81b7-4a94-8b43-4af6a2449429 */ - #[TestDox('encode mindblowingly')] + #[TestDox('Encode mindblowingly')] public function testEncodeLongWord(): void { $this->assertEquals('nrmwy oldrm tob', encode('mindblowingly')); @@ -63,7 +63,7 @@ public function testEncodeLongWord(): void /** * uuid d503361a-1433-48c0-aae0-d41b5baa33ff */ - #[TestDox('encode numbers')] + #[TestDox('Encode numbers')] public function testEncodeNumbers(): void { $this->assertEquals('gvhgr mt123 gvhgr mt', encode('Testing, 1 2 3, testing.')); @@ -72,7 +72,7 @@ public function testEncodeNumbers(): void /** * uuid 79c8a2d5-0772-42d4-b41b-531d0b5da926 */ - #[TestDox('encode deep thought')] + #[TestDox('Encode deep thought')] public function testEncodeSentence(): void { $this->assertEquals('gifgs rhurx grlm', encode('Truth is fiction.')); @@ -81,7 +81,7 @@ public function testEncodeSentence(): void /** * uuid 9ca13d23-d32a-4967-a1fd-6100b8742bab */ - #[TestDox('encode all the letters')] + #[TestDox('Encode all the letters')] public function testEncodeAllTheThings(): void { $plaintext = 'The quick brown fox jumps over the lazy dog.'; @@ -95,7 +95,7 @@ public function testEncodeAllTheThings(): void /** * uuid bb50e087-7fdf-48e7-9223-284fe7e69851 */ - #[TestDox('decode exercism')] + #[TestDox('Decode exercism')] public function testDecodeExercism(): void { $this->assertEquals('exercism', decode('vcvix rhn')); @@ -104,7 +104,7 @@ public function testDecodeExercism(): void /** * uuid ac021097-cd5d-4717-8907-b0814b9e292c */ - #[TestDox('decode a sentence')] + #[TestDox('Decode a sentence')] public function testDecodeASentence(): void { $this->assertEquals( @@ -116,7 +116,7 @@ public function testDecodeASentence(): void /** * uuid 18729de3-de74-49b8-b68c-025eaf77f851 */ - #[TestDox('decode numbers')] + #[TestDox('Decode numbers')] public function testDecodeNumbers(): void { $this->assertEquals( @@ -128,7 +128,7 @@ public function testDecodeNumbers(): void /** * uuid 0f30325f-f53b-415d-ad3e-a7a4f63de034 */ - #[TestDox('decode all the letters')] + #[TestDox('Decode all the letters')] public function testDecodeAllTheLetters(): void { $this->assertEquals( @@ -140,7 +140,7 @@ public function testDecodeAllTheLetters(): void /** * uuid 39640287-30c6-4c8c-9bac-9d613d1a5674 */ - #[TestDox('decode with too many spaces')] + #[TestDox('Decode with too many spaces')] public function testDecodeWithTooManySpaces(): void { $this->assertEquals( @@ -152,7 +152,7 @@ public function testDecodeWithTooManySpaces(): void /** * uuid b34edf13-34c0-49b5-aa21-0768928000d5 */ - #[TestDox('decode with no spaces')] + #[TestDox('Decode with no spaces')] public function testDecodeWithNoSpacesInInput(): void { $this->assertEquals( diff --git a/exercises/practice/baffling-birthdays/BafflingBirthdaysTest.php b/exercises/practice/baffling-birthdays/BafflingBirthdaysTest.php index 0bc18422a..e20dba0b3 100644 --- a/exercises/practice/baffling-birthdays/BafflingBirthdaysTest.php +++ b/exercises/practice/baffling-birthdays/BafflingBirthdaysTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: 716dcc2b-8fe4-4fc9-8c48-cbe70d8e6b67 */ - #[TestDox('shared birthday -> one birthdate')] + #[TestDox('Shared birthday -> One birthdate')] public function testSharedBirthdayOneBirthdate(): void { $birthdays = new BafflingBirthdays(); @@ -25,7 +25,7 @@ public function testSharedBirthdayOneBirthdate(): void /** * uuid: f7b3eb26-bcfc-4c1e-a2de-af07afc33f45 */ - #[TestDox('shared birthday -> two birthdates with same year, month, and day')] + #[TestDox('Shared birthday -> Two birthdates with same year, month, and day')] public function testSharedBirthdayTwoBirthdatesWithSameYearMonthAndDay(): void { $birthdays = new BafflingBirthdays(); @@ -35,7 +35,7 @@ public function testSharedBirthdayTwoBirthdatesWithSameYearMonthAndDay(): void /** * uuid: 7193409a-6e16-4bcb-b4cc-9ffe55f79b25 */ - #[TestDox('shared birthday -> two birthdates with same year and month, but different day')] + #[TestDox('Shared birthday -> Two birthdates with same year and month, but different day')] public function testSharedBirthdayTwoBirthdatesWithSameYearAndMonthButDifferentDay(): void { $birthdays = new BafflingBirthdays(); @@ -45,7 +45,7 @@ public function testSharedBirthdayTwoBirthdatesWithSameYearAndMonthButDifferentD /** * uuid: d04db648-121b-4b72-93e8-d7d2dced4495 */ - #[TestDox('shared birthday -> two birthdates with same month and day, but different year')] + #[TestDox('Shared birthday -> Two birthdates with same month and day, but different year')] public function testSharedBirthdayTwoBirthdatesWithSameMonthAndDayButDifferentYear(): void { $birthdays = new BafflingBirthdays(); @@ -55,7 +55,7 @@ public function testSharedBirthdayTwoBirthdatesWithSameMonthAndDayButDifferentYe /** * uuid: 3c8bd0f0-14c6-4d4c-975a-4c636bfdc233 */ - #[TestDox('shared birthday -> two birthdates with same year, but different month and day')] + #[TestDox('Shared birthday -> Two birthdates with same year, but different month and day')] public function testSharedBirthdayTwoBirthdatesWithSameYearButDifferentMonthAndDay(): void { $birthdays = new BafflingBirthdays(); @@ -65,7 +65,7 @@ public function testSharedBirthdayTwoBirthdatesWithSameYearButDifferentMonthAndD /** * uuid: df5daba6-0879-4480-883c-e855c99cdaa3 */ - #[TestDox('shared birthday -> two birthdates with different year, month, and day')] + #[TestDox('Shared birthday -> Two birthdates with different year, month, and day')] public function testSharedBirthdayTwoBirthdatesWithDifferentYearMonthAndDay(): void { $birthdays = new BafflingBirthdays(); @@ -75,7 +75,7 @@ public function testSharedBirthdayTwoBirthdatesWithDifferentYearMonthAndDay(): v /** * uuid: 0c17b220-cbb9-4bd7-872f-373044c7b406 */ - #[TestDox('shared birthday -> multiple birthdates without shared birthday')] + #[TestDox('Shared birthday -> Multiple birthdates without shared birthday')] public function testSharedBirthdayMultipleBirthdatesWithoutSharedBirthday(): void { $birthdays = new BafflingBirthdays(); @@ -92,7 +92,7 @@ public function testSharedBirthdayMultipleBirthdatesWithoutSharedBirthday(): voi /** * uuid: 966d6b0b-5c0a-4b8c-bc2d-64939ada49f8 */ - #[TestDox('shared birthday -> multiple birthdates with one shared birthday')] + #[TestDox('Shared birthday -> Multiple birthdates with one shared birthday')] public function testSharedBirthdayMultipleBirthdatesWithOneSharedBirthday(): void { $birthdays = new BafflingBirthdays(); @@ -109,7 +109,7 @@ public function testSharedBirthdayMultipleBirthdatesWithOneSharedBirthday(): voi /** * uuid: b7937d28-403b-4500-acce-4d9fe3a9620d */ - #[TestDox('shared birthday -> multiple birthdates with more than one shared birthday')] + #[TestDox('Shared birthday -> Multiple birthdates with more than one shared birthday')] public function testSharedBirthdayMultipleBirthdatesWithMoreThanOneSharedBirthday(): void { $birthdays = new BafflingBirthdays(); @@ -127,7 +127,7 @@ public function testSharedBirthdayMultipleBirthdatesWithMoreThanOneSharedBirthda /** * uuid: 70b38cea-d234-4697-b146-7d130cd4ee12 */ - #[TestDox('random birthdates -> generate requested number of birthdates')] + #[TestDox('Random birthdates -> Generate requested number of birthdates')] public function testRandomBirthdatesGenerateRequestedNumberOfBirthdates(): void { $generate = rand(100, 1000); @@ -139,7 +139,7 @@ public function testRandomBirthdatesGenerateRequestedNumberOfBirthdates(): void /** * uuid: d9d5b7d3-5fea-4752-b9c1-3fcd176d1b03 */ - #[TestDox('random birthdates -> years are not leap years')] + #[TestDox('Random birthdates -> Years are not leap years')] public function testRandomBirthdatesYearsAreNotLeapYears(): void { $generate = 1000; @@ -155,7 +155,7 @@ public function testRandomBirthdatesYearsAreNotLeapYears(): void /** * uuid: d1074327-f68c-4c8a-b0ff-e3730d0f0521 */ - #[TestDox('random birthdates -> months are random')] + #[TestDox('Random birthdates -> Months are random')] public function testRandomBirthdatesMonthsAreRandom(): void { $generate = 1000; @@ -173,7 +173,7 @@ public function testRandomBirthdatesMonthsAreRandom(): void /** * uuid: 7df706b3-c3f5-471d-9563-23a4d0577940 */ - #[TestDox('random birthdates -> days are random')] + #[TestDox('Random birthdates -> Days are random')] public function testRandomBirthdatesDaysAreRandom(): void { $generate = 1000; @@ -191,7 +191,7 @@ public function testRandomBirthdatesDaysAreRandom(): void /** * uuid: 89a462a4-4265-4912-9506-fb027913f221 */ - #[TestDox('estimated probability of at least one shared birthday -> for one person')] + #[TestDox('Estimated probability of at least one shared birthday -> For one person')] public function testEstimatedProbabilityOfAtLeastOneSharedBirthdayForOnePerson(): void { $birthdays = new BafflingBirthdays(); @@ -205,7 +205,7 @@ public function testEstimatedProbabilityOfAtLeastOneSharedBirthdayForOnePerson() /** * uuid: ec31c787-0ebb-4548-970c-5dcb4eadfb5f */ - #[TestDox('estimated probability of at least one shared birthday -> among ten people')] + #[TestDox('Estimated probability of at least one shared birthday -> Among ten people')] public function testEstimatedProbabilityOfAtLeastOneSharedBirthdayAmongTenPeople(): void { $birthdays = new BafflingBirthdays(); @@ -219,7 +219,7 @@ public function testEstimatedProbabilityOfAtLeastOneSharedBirthdayAmongTenPeople /** * uuid: b548afac-a451-46a3-9bb0-cb1f60c48e2f */ - #[TestDox('estimated probability of at least one shared birthday -> among twenty-three people')] + #[TestDox('Estimated probability of at least one shared birthday -> Among twenty-three people')] public function testEstimatedProbabilityOfAtLeastOneSharedBirthdayAmongTwentyThreePeople(): void { $birthdays = new BafflingBirthdays(); @@ -233,7 +233,7 @@ public function testEstimatedProbabilityOfAtLeastOneSharedBirthdayAmongTwentyThr /** * uuid: b548afac-a451-46a3-9bb0-cb1f60c48e2f */ - #[TestDox('estimated probability of at least one shared birthday -> among seventy people')] + #[TestDox('Estimated probability of at least one shared birthday -> Among seventy people')] public function testEstimatedProbabilityOfAtLeastOneSharedBirthdayAmongSeventyPeople(): void { $birthdays = new BafflingBirthdays(); diff --git a/exercises/practice/binary-search-tree/BinarySearchTreeTest.php b/exercises/practice/binary-search-tree/BinarySearchTreeTest.php index e63e938fd..c0516a2fb 100644 --- a/exercises/practice/binary-search-tree/BinarySearchTreeTest.php +++ b/exercises/practice/binary-search-tree/BinarySearchTreeTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid e9c93a78-c536-4750-a336-94583d23fafa */ - #[TestDox('data is retained')] + #[TestDox('Data is retained')] public function testDataIsRetained(): void { $tree = new BinarySearchTree(4); @@ -25,7 +25,7 @@ public function testDataIsRetained(): void /** * uuid 7a95c9e8-69f6-476a-b0c4-4170cb3f7c91 */ - #[TestDox('smaller number at left node')] + #[TestDox('Smaller number at left node')] public function testSmallNumberAtLeftNode(): void { $tree = new BinarySearchTree(4); @@ -38,7 +38,7 @@ public function testSmallNumberAtLeftNode(): void /** * uuid 22b89499-9805-4703-a159-1a6e434c1585 */ - #[TestDox('same number at left node')] + #[TestDox('Same number at left node')] public function testSameNumberLeftNodes(): void { $tree = new BinarySearchTree(4); @@ -51,7 +51,7 @@ public function testSameNumberLeftNodes(): void /** * uuid 2e85fdde-77b1-41ed-b6ac-26ce6b663e34 */ - #[TestDox('greater number at right node')] + #[TestDox('Greater number at right node')] public function testGreaterNumberRightNode(): void { $tree = new BinarySearchTree(4); @@ -64,7 +64,7 @@ public function testGreaterNumberRightNode(): void /** * uuid dd898658-40ab-41d0-965e-7f145bf66e0b */ - #[TestDox('can create complex tree')] + #[TestDox('Can create complex tree')] public function testCreateComplexTree(): void { $tree = new BinarySearchTree(4); @@ -87,7 +87,7 @@ public function testCreateComplexTree(): void /** * uuid 9e0c06ef-aeca-4202-b8e4-97f1ed057d56 */ - #[TestDox('can sort single number')] + #[TestDox('Can sort single number')] public function testCanSortSingleNode(): void { $tree = new BinarySearchTree(2); @@ -98,7 +98,7 @@ public function testCanSortSingleNode(): void /** * uuid 425e6d07-fceb-4681-a4f4-e46920e380bb */ - #[TestDox('can sort if second number is smaller than first')] + #[TestDox('Can sort if second number is smaller than first')] public function testCanSortSmallerSecondNumber(): void { $tree = new BinarySearchTree(2); @@ -110,7 +110,7 @@ public function testCanSortSmallerSecondNumber(): void /** * uuid bd7532cc-6988-4259-bac8-1d50140079ab */ - #[TestDox('can sort if second number is same as first')] + #[TestDox('Can sort if second number is same as first')] public function testCanSortSameNumbers(): void { $tree = new BinarySearchTree(2); @@ -122,7 +122,7 @@ public function testCanSortSameNumbers(): void /** * uuid b6d1b3a5-9d79-44fd-9013-c83ca92ddd36 */ - #[TestDox('can sort if second number is greater than first')] + #[TestDox('Can sort if second number is greater than first')] public function testCanSortGreaterSecondNumber(): void { $tree = new BinarySearchTree(2); @@ -134,7 +134,7 @@ public function testCanSortGreaterSecondNumber(): void /** * uuid d00ec9bd-1288-4171-b968-d44d0808c1c8 */ - #[TestDox('can sort complex tree')] + #[TestDox('Can sort complex tree')] public function testCanSortComplexTree(): void { $tree = new BinarySearchTree(2); diff --git a/exercises/practice/bob/BobTest.php b/exercises/practice/bob/BobTest.php index d1a152e0f..3543d4a2a 100644 --- a/exercises/practice/bob/BobTest.php +++ b/exercises/practice/bob/BobTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: e162fead-606f-437a-a166-d051915cea8e */ - #[TestDox('stating something')] + #[TestDox('Stating something')] public function testStatingSomething(): void { $input = "Tom-ay-to, tom-aaaah-to."; @@ -27,7 +27,7 @@ public function testStatingSomething(): void /** * uuid: 73a966dc-8017-47d6-bb32-cf07d1a5fcd9 */ - #[TestDox('shouting')] + #[TestDox('Shouting')] public function testShouting(): void { $input = "WATCH OUT!"; @@ -39,7 +39,7 @@ public function testShouting(): void /** * uuid: d6c98afd-df35-4806-b55e-2c457c3ab748 */ - #[TestDox('shouting gibberish')] + #[TestDox('Shouting gibberish')] public function testShoutingGibberish(): void { $input = "FCECDFCAAB"; @@ -51,7 +51,7 @@ public function testShoutingGibberish(): void /** * uuid: 8a2e771d-d6f1-4e3f-b6c6-b41495556e37 */ - #[TestDox('asking a question')] + #[TestDox('Asking a question')] public function testAskingAQuestion(): void { $input = "Does this cryogenic chamber make me look fat?"; @@ -63,7 +63,7 @@ public function testAskingAQuestion(): void /** * uuid: 81080c62-4e4d-4066-b30a-48d8d76920d9 */ - #[TestDox('asking a numeric question')] + #[TestDox('Asking a numeric question')] public function testAskingANumericQuestion(): void { $input = "You are, what, like 15?"; @@ -75,7 +75,7 @@ public function testAskingANumericQuestion(): void /** * uuid: 2a02716d-685b-4e2e-a804-2adaf281c01e */ - #[TestDox('asking gibberish')] + #[TestDox('Asking gibberish')] public function testAskingGibberish(): void { $input = "fffbbcbeab?"; @@ -87,7 +87,7 @@ public function testAskingGibberish(): void /** * uuid: c02f9179-ab16-4aa7-a8dc-940145c385f7 */ - #[TestDox('talking forcefully')] + #[TestDox('Talking forcefully')] public function testTalkingForcefully(): void { $input = "Hi there!"; @@ -99,7 +99,7 @@ public function testTalkingForcefully(): void /** * uuid: 153c0e25-9bb5-4ec5-966e-598463658bcd */ - #[TestDox('using acronyms in regular speech')] + #[TestDox('Using acronyms in regular speech')] public function testUsingAcronymsInRegularSpeech(): void { $input = "It's OK if you don't want to go work for NASA."; @@ -111,7 +111,7 @@ public function testUsingAcronymsInRegularSpeech(): void /** * uuid: a5193c61-4a92-4f68-93e2-f554eb385ec6 */ - #[TestDox('forceful question')] + #[TestDox('Forceful question')] public function testForcefulQuestion(): void { $input = "WHAT'S GOING ON?"; @@ -123,7 +123,7 @@ public function testForcefulQuestion(): void /** * uuid: a20e0c54-2224-4dde-8b10-bd2cdd4f61bc */ - #[TestDox('shouting numbers')] + #[TestDox('Shouting numbers')] public function testShoutingNumbers(): void { $input = "1, 2, 3 GO!"; @@ -135,7 +135,7 @@ public function testShoutingNumbers(): void /** * uuid: f7bc4b92-bdff-421e-a238-ae97f230ccac */ - #[TestDox('no letters')] + #[TestDox('No letters')] public function testOnlyNumbers(): void { $input = "1, 2, 3"; @@ -147,7 +147,7 @@ public function testOnlyNumbers(): void /** * uuid: bb0011c5-cd52-4a5b-8bfb-a87b6283b0e2 */ - #[TestDox('question with no letters')] + #[TestDox('Question with no letters')] public function testQuestionWithOnlyNumbers(): void { $input = "4?"; @@ -159,7 +159,7 @@ public function testQuestionWithOnlyNumbers(): void /** * uuid: 496143c8-1c31-4c01-8a08-88427af85c66 */ - #[TestDox('shouting with special characters')] + #[TestDox('Shouting with special characters')] public function testShoutingWithSpecialCharacters(): void { $input = "ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"; @@ -171,7 +171,7 @@ public function testShoutingWithSpecialCharacters(): void /** * uuid: e6793c1c-43bd-4b8d-bc11-499aea73925f */ - #[TestDox('shouting with no exclamation mark')] + #[TestDox('Shouting with no exclamation mark')] public function testShoutingWithNoExclamationMark(): void { $input = "I HATE THE DENTIST"; @@ -183,7 +183,7 @@ public function testShoutingWithNoExclamationMark(): void /** * uuid: aa8097cc-c548-4951-8856-14a404dd236a */ - #[TestDox('statement containing question mark')] + #[TestDox('Statement containing question mark')] public function testStatementContainingQuestionMark(): void { $input = "Ending with ? means a question."; @@ -195,7 +195,7 @@ public function testStatementContainingQuestionMark(): void /** * uuid: 9bfc677d-ea3a-45f2-be44-35bc8fa3753e */ - #[TestDox('non-letters with question')] + #[TestDox('Non-letters with question')] public function testNonLettersWithQuestion(): void { $input = ":) ?"; @@ -207,7 +207,7 @@ public function testNonLettersWithQuestion(): void /** * uuid: 8608c508-f7de-4b17-985b-811878b3cf45 */ - #[TestDox('prattling on')] + #[TestDox('Prattling on')] public function testPrattlingOn(): void { $input = "Wait! Hang on. Are you going to be OK?"; @@ -219,7 +219,7 @@ public function testPrattlingOn(): void /** * uuid: bc39f7c6-f543-41be-9a43-fd1c2f753fc0 */ - #[TestDox('silence')] + #[TestDox('Silence')] public function testSilence(): void { $input = ""; @@ -231,7 +231,7 @@ public function testSilence(): void /** * uuid: d6c47565-372b-4b09-b1dd-c40552b8378b */ - #[TestDox('prolonged silence')] + #[TestDox('Prolonged silence')] public function testProlongedSilence(): void { $input = " "; @@ -243,7 +243,7 @@ public function testProlongedSilence(): void /** * uuid: 4428f28d-4100-4d85-a902-e5a78cb0ecd3 */ - #[TestDox('alternate silence')] + #[TestDox('Alternate silence')] public function testAlternateSilence(): void { $input = "\t\t\t\t\t\t\t\t\t\t"; @@ -255,7 +255,7 @@ public function testAlternateSilence(): void /** * uuid: 5371ef75-d9ea-4103-bcfa-2da973ddec1b */ - #[TestDox('starting with whitespace')] + #[TestDox('Starting with whitespace')] public function testStartingWithWhitespace(): void { $input = " hmmmmmmm..."; @@ -267,7 +267,7 @@ public function testStartingWithWhitespace(): void /** * uuid: 05b304d6-f83b-46e7-81e0-4cd3ca647900 */ - #[TestDox('ending with whitespace')] + #[TestDox('Ending with whitespace')] public function testEndingWithWhitespace(): void { $input = "Okay if like my spacebar quite a bit? "; @@ -279,7 +279,7 @@ public function testEndingWithWhitespace(): void /** * uuid: 72bd5ad3-9b2f-4931-a988-dce1f5771de2 */ - #[TestDox('other whitespace')] + #[TestDox('Other whitespace')] public function testOtherWhitespace() { $input = "\n\r \t"; @@ -291,7 +291,7 @@ public function testOtherWhitespace() /** * uuid: 12983553-8601-46a8-92fa-fcaa3bc4a2a0 */ - #[TestDox('non-question ending with whitespace')] + #[TestDox('Non-question ending with whitespace')] public function testNonQuestionEndingWithWhitespace(): void { $input = "This is a statement ending with whitespace "; @@ -303,7 +303,7 @@ public function testNonQuestionEndingWithWhitespace(): void /** * uuid: 2c7278ac-f955-4eb4-bf8f-e33eb4116a15 */ - #[TestDox('multiple line question')] + #[TestDox('Multiple line question')] public function testMultipleLineQuestion(): void { $input = "\nDoes this cryogenic chamber make\n me look fat?"; diff --git a/exercises/practice/bottle-song/BottleSongTest.php b/exercises/practice/bottle-song/BottleSongTest.php index c4a63b225..2333d5a5a 100644 --- a/exercises/practice/bottle-song/BottleSongTest.php +++ b/exercises/practice/bottle-song/BottleSongTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: d4ccf8fc-01dc-48c0-a201-4fbeb30f2d03 */ - #[TestDox('verse -> single verse -> first generic verse')] + #[TestDox('Verse -> Single verse -> First generic verse')] public function testVerseSingleVerseFirstGenericVerse(): void { $expected = "Ten green bottles hanging on the wall,\n" . @@ -29,7 +29,7 @@ public function testVerseSingleVerseFirstGenericVerse(): void /** * uuid: 0f0aded3-472a-4c64-b842-18d4f1f5f030 */ - #[TestDox('verse -> single verse -> last generic verse')] + #[TestDox('Verse -> Single verse -> Last generic verse')] public function testVerseSingleVerseLastGenericVerse(): void { $expected = "Three green bottles hanging on the wall,\n" . @@ -43,7 +43,7 @@ public function testVerseSingleVerseLastGenericVerse(): void /** * uuid: f61f3c97-131f-459e-b40a-7428f3ed99d9 */ - #[TestDox('verse -> single verse -> verse with 2 bottles')] + #[TestDox('Verse -> Single verse -> Verse with 2 bottles')] public function testVerseSingleVerseVerseWithTwoBottles(): void { $expected = "Two green bottles hanging on the wall,\n" . @@ -57,7 +57,7 @@ public function testVerseSingleVerseVerseWithTwoBottles(): void /** * uuid: 05eadba9-5dbd-401e-a7e8-d17cc9baa8e0 */ - #[TestDox('verse -> single verse -> verse with 1 bottle')] + #[TestDox('Verse -> Single verse -> Verse with 1 bottle')] public function testVerseSingleVerseVerseWithOneBottle(): void { $expected = "One green bottle hanging on the wall,\n" . @@ -71,7 +71,7 @@ public function testVerseSingleVerseVerseWithOneBottle(): void /** * uuid: a4a28170-83d6-4dc1-bd8b-319b6abb6a80 */ - #[TestDox('verses -> multiple verses -> first two verses')] + #[TestDox('Verses -> Multiple verses -> First two verses')] public function testVersesMultipleVersesFirstTwoVerses(): void { $expected = "Ten green bottles hanging on the wall,\n" . @@ -90,7 +90,7 @@ public function testVersesMultipleVersesFirstTwoVerses(): void /** * uuid: 3185d438-c5ac-4ce6-bcd3-02c9ff1ed8db */ - #[TestDox('verses -> multiple verses -> last three verses')] + #[TestDox('Verses -> Multiple verses -> Last three verses')] public function testVersesMultipleVersesLastThreeVerses(): void { $expected = "Three green bottles hanging on the wall,\n" . @@ -114,7 +114,7 @@ public function testVersesMultipleVersesLastThreeVerses(): void /** * uuid: 28c1584a-0e51-4b65-9ae2-fbc0bf4bbb28 */ - #[TestDox('lyrics -> multiple verses -> all verses')] + #[TestDox('Lyrics -> Multiple verses -> All verses')] public function testLyricsMultipleVersesAllVerses(): void { $expected = <<assertEquals([1], findFewestCoins([1, 5, 10, 25], 1)); @@ -24,7 +24,7 @@ public function testChangeForOneCent(): void /** * uuid 36887bea-7f92-4a9c-b0cc-c0e886b3ecc8 */ - #[TestDox('single coin change')] + #[TestDox('Single coin change')] public function testSingleCoinChange(): void { $this->assertEquals([25], findFewestCoins([1, 5, 10, 25, 100], 25)); @@ -33,7 +33,7 @@ public function testSingleCoinChange(): void /** * uuid cef21ccc-0811-4e6e-af44-f011e7eab6c6 */ - #[TestDox('multiple coin change')] + #[TestDox('Multiple coin change')] public function testMultipleCoinChange(): void { $this->assertEquals([5, 10], findFewestCoins([1, 5, 10, 25, 100], 15)); @@ -42,7 +42,7 @@ public function testMultipleCoinChange(): void /** * uuid d60952bc-0c1a-4571-bf0c-41be72690cb3 */ - #[TestDox('change with Lilliputian Coins')] + #[TestDox('Change with Lilliputian Coins')] public function testChangeWithLilliputianCoins(): void { $this->assertEquals([4, 4, 15], findFewestCoins([1, 4, 15, 20, 50], 23)); @@ -51,7 +51,7 @@ public function testChangeWithLilliputianCoins(): void /** * uuid 408390b9-fafa-4bb9-b608-ffe6036edb6c */ - #[TestDox('change with Lower Elbonia Coins')] + #[TestDox('Change with Lower Elbonia Coins')] public function testChangeWithLowerElboniaCoins(): void { $this->assertEquals([21, 21, 21], findFewestCoins([1, 5, 10, 21, 25], 63)); @@ -60,7 +60,7 @@ public function testChangeWithLowerElboniaCoins(): void /** * uuid 7421a4cb-1c48-4bf9-99c7-7f049689132f */ - #[TestDox('large target values')] + #[TestDox('Large target values')] public function testWithLargeTargetValue(): void { $this->assertEquals( @@ -72,7 +72,7 @@ public function testWithLargeTargetValue(): void /** * uuid f79d2e9b-0ae3-4d6a-bb58-dc978b0dba28 */ - #[TestDox('possible change without unit coins available')] + #[TestDox('Possible change without unit coins available')] public function testPossibleChangeWithoutUnitCoinsAvailable(): void { $this->assertEquals( @@ -84,7 +84,7 @@ public function testPossibleChangeWithoutUnitCoinsAvailable(): void /** * uuid 9a166411-d35d-4f7f-a007-6724ac266178 */ - #[TestDox('another possible change without unit coins available')] + #[TestDox('Another possible change without unit coins available')] public function testAnotherPossibleChangeWithoutUnitCoinsAvailable(): void { $this->assertEquals( @@ -96,7 +96,7 @@ public function testAnotherPossibleChangeWithoutUnitCoinsAvailable(): void /** * uuid ce0f80d5-51c3-469d-818c-3e69dbd25f75 */ - #[TestDox('a greedy approach is not optimal')] + #[TestDox('A greedy approach is not optimal')] public function testAGreedyApproachIsNotOptimal(): void { $this->assertEquals([10, 10], findFewestCoins([1, 10, 11], 20)); @@ -105,7 +105,7 @@ public function testAGreedyApproachIsNotOptimal(): void /** * uuid bbbcc154-e9e9-4209-a4db-dd6d81ec26bb */ - #[TestDox('no coins make 0 change')] + #[TestDox('No coins make 0 change')] public function testNoCoinsForZero(): void { $this->assertEquals([], findFewestCoins([1, 5, 10, 21, 25], 0)); @@ -114,7 +114,7 @@ public function testNoCoinsForZero(): void /** * uuid c8b81d5a-49bd-4b61-af73-8ee5383a2ce1 */ - #[TestDox('error testing for change smaller than the smallest of coins')] + #[TestDox('Error testing for change smaller than the smallest of coins')] public function testForChangeSmallerThanAvailableCoins(): void { $this->expectException(InvalidArgumentException::class); @@ -126,7 +126,7 @@ public function testForChangeSmallerThanAvailableCoins(): void /** * uuid 3c43e3e4-63f9-46ac-9476-a67516e98f68 */ - #[TestDox('error if no combination can add up to target')] + #[TestDox('Error if no combination can add up to target')] public function testErrorIfNoCombinationCanAddUpToTarget(): void { $this->expectException(InvalidArgumentException::class); @@ -138,7 +138,7 @@ public function testErrorIfNoCombinationCanAddUpToTarget(): void /** * uuid 8fe1f076-9b2d-4f44-89fe-8a6ccd63c8f3 */ - #[TestDox('cannot find negative change values')] + #[TestDox('Cannot find negative change values')] public function testChangeValueLessThanZero(): void { $this->expectException(InvalidArgumentException::class); diff --git a/exercises/practice/circular-buffer/CircularBufferTest.php b/exercises/practice/circular-buffer/CircularBufferTest.php index 45835ad19..e543d60b1 100644 --- a/exercises/practice/circular-buffer/CircularBufferTest.php +++ b/exercises/practice/circular-buffer/CircularBufferTest.php @@ -13,7 +13,7 @@ class CircularBufferTest extends TestCase /** * uuid: 28268ed4-4ff3-45f3-820e-895b44d53dfa */ - #[TestDox('reading empty buffer should fail')] + #[TestDox('Reading empty buffer should fail')] public function testReadingEmptyBufferShouldFail(): void { $buffer = new CircularBuffer(1); @@ -24,7 +24,7 @@ public function testReadingEmptyBufferShouldFail(): void /** * uuid: 2e6db04a-58a1-425d-ade8-ac30b5f318f3 */ - #[TestDox('can read an item just written')] + #[TestDox('Can read an item just written')] public function testCanReadAnItemJustWritten(): void { $buffer = new CircularBuffer(1); @@ -35,7 +35,7 @@ public function testCanReadAnItemJustWritten(): void /** * uuid: 90741fe8-a448-45ce-be2b-de009a24c144 */ - #[TestDox('each item may only be read once')] + #[TestDox('Each item may only be read once')] public function testEachItemMayOnlyBeReadOnce(): void { $buffer = new CircularBuffer(1); @@ -48,7 +48,7 @@ public function testEachItemMayOnlyBeReadOnce(): void /** * uuid: be0e62d5-da9c-47a8-b037-5db21827baa7 */ - #[TestDox('items are read in the order they are written')] + #[TestDox('Items are read in the order they are written')] public function testItemsAreReadInTheOrderTheyAreWritten(): void { $buffer = new CircularBuffer(2); @@ -61,7 +61,7 @@ public function testItemsAreReadInTheOrderTheyAreWritten(): void /** * uuid: 2af22046-3e44-4235-bfe6-05ba60439d38 */ - #[TestDox("full buffer can't be written to")] + #[TestDox("Full buffer can't be written to")] public function testFullBufferCantBeWrittenTo(): void { $buffer = new CircularBuffer(1); @@ -73,7 +73,7 @@ public function testFullBufferCantBeWrittenTo(): void /** * uuid: 547d192c-bbf0-4369-b8fa-fc37e71f2393 */ - #[TestDox('a read frees up capacity for another write')] + #[TestDox('A read frees up capacity for another write')] public function testAReadFreesUpCapacityForAnotherWrite(): void { $buffer = new CircularBuffer(1); @@ -86,7 +86,7 @@ public function testAReadFreesUpCapacityForAnotherWrite(): void /** * uuid: 04a56659-3a81-4113-816b-6ecb659b4471 */ - #[TestDox('read position is maintained even across multiple writes')] + #[TestDox('Read position is maintained even across multiple writes')] public function testReadPositionIsMaintainedEvenAcrossMultipleWrites(): void { $buffer = new CircularBuffer(3); @@ -101,7 +101,7 @@ public function testReadPositionIsMaintainedEvenAcrossMultipleWrites(): void /** * uuid: 60c3a19a-81a7-43d7-bb0a-f07242b1111f */ - #[TestDox("items cleared out of buffer can't be read")] + #[TestDox("Items cleared out of buffer can't be read")] public function testItemsClearedOutOfBufferCantBeRead(): void { $buffer = new CircularBuffer(1); @@ -114,7 +114,7 @@ public function testItemsClearedOutOfBufferCantBeRead(): void /** * uuid: 45f3ae89-3470-49f3-b50e-362e4b330a59 */ - #[TestDox('clear frees up capacity for another write')] + #[TestDox('Clear frees up capacity for another write')] public function testClearFreesUpCapacityForAnotherWrite(): void { $buffer = new CircularBuffer(1); @@ -127,7 +127,7 @@ public function testClearFreesUpCapacityForAnotherWrite(): void /** * uuid: e1ac5170-a026-4725-bfbe-0cf332eddecd */ - #[TestDox('clear does nothing on empty buffer')] + #[TestDox('Clear does nothing on empty buffer')] public function testClearDoesNothingOnEmptyBuffer(): void { $buffer = new CircularBuffer(1); @@ -139,7 +139,7 @@ public function testClearDoesNothingOnEmptyBuffer(): void /** * uuid: 9c2d4f26-3ec7-453f-a895-7e7ff8ae7b5b */ - #[TestDox('overwrite acts like write on non-full buffer')] + #[TestDox('Overwrite acts like write on non-full buffer')] public function testOverwriteActsLikeWriteOnNonFullBuffer(): void { $buffer = new CircularBuffer(2); @@ -152,7 +152,7 @@ public function testOverwriteActsLikeWriteOnNonFullBuffer(): void /** * uuid: 880f916b-5039-475c-bd5c-83463c36a147 */ - #[TestDox('overwrite replaces the oldest item on full buffer')] + #[TestDox('Overwrite replaces the oldest item on full buffer')] public function testOverwriteReplacesTheOldestItemOnFullBuffer(): void { $buffer = new CircularBuffer(2); @@ -166,7 +166,7 @@ public function testOverwriteReplacesTheOldestItemOnFullBuffer(): void /** * uuid: bfecab5b-aca1-4fab-a2b0-cd4af2b053c3 */ - #[TestDox('overwrite replaces the oldest item remaining in buffer following a read')] + #[TestDox('Overwrite replaces the oldest item remaining in buffer following a read')] public function testOverwriteReplacesTheOldestItemRemainingInBufferFollowingARead(): void { $buffer = new CircularBuffer(3); @@ -184,7 +184,7 @@ public function testOverwriteReplacesTheOldestItemRemainingInBufferFollowingARea /** * uuid: 9cebe63a-c405-437b-8b62-e3fdc1ecec5a */ - #[TestDox('initial clear does not affect wrapping around')] + #[TestDox('Initial clear does not affect wrapping around')] public function testInitialClearDoesNotAffectWrappingAround(): void { $buffer = new CircularBuffer(2); diff --git a/exercises/practice/clock/ClockTest.php b/exercises/practice/clock/ClockTest.php index 0d9e7a19b..d1ed40d61 100644 --- a/exercises/practice/clock/ClockTest.php +++ b/exercises/practice/clock/ClockTest.php @@ -26,7 +26,7 @@ public function testOnTheHour(): void /** * uuid b5d0c360-3b88-489b-8e84-68a1c7a4fa23 */ - #[TestDox('past the hour')] + #[TestDox('Past the hour')] public function testPastTheHour(): void { $clock = new Clock(11, 9); @@ -37,7 +37,7 @@ public function testPastTheHour(): void /** * uuid 473223f4-65f3-46ff-a9f7-7663c7e59440 */ - #[TestDox('midnight is zero hours')] + #[TestDox('Midnight is zero hours')] public function testMidnightIsZeroHours(): void { $clock = new Clock(24, 0); @@ -47,7 +47,7 @@ public function testMidnightIsZeroHours(): void /** * uuid ca95d24a-5924-447d-9a96-b91c8334725c */ - #[TestDox('hour rolls over')] + #[TestDox('Hour rolls over')] public function testHourRollsOver(): void { $clock = new Clock(25, 0); @@ -57,7 +57,7 @@ public function testHourRollsOver(): void /** * uuid f3826de0-0925-4d69-8ac8-89aea7e52b78 */ - #[TestDox('hour rolls over continuously')] + #[TestDox('Hour rolls over continuously')] public function testHourRollsOverContinuously(): void { $clock = new Clock(100, 0); @@ -67,7 +67,7 @@ public function testHourRollsOverContinuously(): void /** * uuid a02f7edf-dfd4-4b11-b21a-86de3cc6a95c */ - #[TestDox('sixty minutes is next hour')] + #[TestDox('Sixty minutes is next hour')] public function testSixtyMinutesIsNextHour(): void { $clock = new Clock(1, 60); @@ -77,7 +77,7 @@ public function testSixtyMinutesIsNextHour(): void /** * uuid 8f520df6-b816-444d-b90f-8a477789beb5 */ - #[TestDox('minutes roll over')] + #[TestDox('Minutes roll over')] public function testMinutesRollOver(): void { $clock = new Clock(0, 160); @@ -87,7 +87,7 @@ public function testMinutesRollOver(): void /** * uuid c75c091b-47ac-4655-8d40-643767fc4eed */ - #[TestDox('minutes roll over continuously')] + #[TestDox('Minutes roll over continuously')] public function testMinutesRollOverContinuously(): void { $clock = new Clock(0, 1723); @@ -97,7 +97,7 @@ public function testMinutesRollOverContinuously(): void /** * uuid 06343ecb-cf39-419d-a3f5-dcbae0cc4c57 */ - #[TestDox('hour and minutes roll over')] + #[TestDox('Hour and minutes roll over')] public function testHourAndMinutesRollOver(): void { $clock = new Clock(25, 160); @@ -107,7 +107,7 @@ public function testHourAndMinutesRollOver(): void /** * uuid be60810e-f5d9-4b58-9351-a9d1e90e660c */ - #[TestDox('hour and minutes roll over continuously')] + #[TestDox('Hour and minutes roll over continuously')] public function testHourAndMinutesRollOverContinuously(): void { $clock = new Clock(201, 3001); @@ -118,7 +118,7 @@ public function testHourAndMinutesRollOverContinuously(): void /** * uuid 1689107b-0b5c-4bea-aad3-65ec9859368a */ - #[TestDox('hour and minutes roll over to exactly midnight')] + #[TestDox('Hour and minutes roll over to exactly midnight')] public function testHourAndMinutesRollOverToExactlyMidnight(): void { $clock = new Clock(72, 8640); @@ -128,7 +128,7 @@ public function testHourAndMinutesRollOverToExactlyMidnight(): void /** * uuid d3088ee8-91b7-4446-9e9d-5e2ad6219d91 */ - #[TestDox('negative hour')] + #[TestDox('Negative hour')] public function testNegativeHour(): void { $clock = new Clock(-1, 15); @@ -138,7 +138,7 @@ public function testNegativeHour(): void /** * uuid 77ef6921-f120-4d29-bade-80d54aa43b54 */ - #[TestDox('negative hour rolls over')] + #[TestDox('Negative hour rolls over')] public function testNegativeHourRollsOver(): void { $clock = new Clock(-25, 0); @@ -148,7 +148,7 @@ public function testNegativeHourRollsOver(): void /** * uuid 359294b5-972f-4546-bb9a-a85559065234 */ - #[TestDox('negative hour rolls over continuously')] + #[TestDox('Negative hour rolls over continuously')] public function testNegativeHourRollsOverContinuously(): void { $clock = new Clock(-91, 0); @@ -158,7 +158,7 @@ public function testNegativeHourRollsOverContinuously(): void /** * uuid 509db8b7-ac19-47cc-bd3a-a9d2f30b03c0 */ - #[TestDox('negative minutes')] + #[TestDox('Negative minutes')] public function testNegativeMinutes(): void { $clock = new Clock(1, -40); @@ -168,7 +168,7 @@ public function testNegativeMinutes(): void /** * uuid 5d6bb225-130f-4084-84fd-9e0df8996f2a */ - #[TestDox('negative minutes roll over')] + #[TestDox('Negative minutes roll over')] public function testNegativeMinutesRollOver(): void { $clock = new Clock(1, -160); @@ -178,7 +178,7 @@ public function testNegativeMinutesRollOver(): void /** * uuid d483ceef-b520-4f0c-b94a-8d2d58cf0484 */ - #[TestDox('negative minutes roll over continuously')] + #[TestDox('Negative minutes roll over continuously')] public function testNegativeMinutesRollOverContinuously(): void { $clock = new Clock(1, -4820); @@ -188,7 +188,7 @@ public function testNegativeMinutesRollOverContinuously(): void /** * uuid 1cd19447-19c6-44bf-9d04-9f8305ccb9ea */ - #[TestDox('negative sixty minutes is previous hour')] + #[TestDox('Negative sixty minutes is previous hour')] public function testNegativeSixtyMinutesIsPreviousHour(): void { $clock = new Clock(2, -60); @@ -198,7 +198,7 @@ public function testNegativeSixtyMinutesIsPreviousHour(): void /** * uuid 9d3053aa-4f47-4afc-bd45-d67a72cef4dc */ - #[TestDox('negative hour and minutes both roll over')] + #[TestDox('Negative hour and minutes both roll over')] public function testNegativeHourAndMinutesBothRollOver(): void { $clock = new Clock(-25, -160); @@ -208,7 +208,7 @@ public function testNegativeHourAndMinutesBothRollOver(): void /** * uuid 51d41fcf-491e-4ca0-9cae-2aa4f0163ad4 */ - #[TestDox('negative hour and minutes both roll over continuously')] + #[TestDox('Negative hour and minutes both roll over continuously')] public function testNegativeHourAndMinutesBothRollOverContinuously(): void { $clock = new Clock(-121, -5810); @@ -318,7 +318,7 @@ public function testSubtractMinutes(): void /** * uuid 0aafa4d0-3b5f-4b12-b3af-e3a9e09c047b */ - #[TestDox('subtract to previous hour')] + #[TestDox('Subtract to previous hour')] public function testSubtractToPreviousHour(): void { $clock = new Clock(10, 3); @@ -329,7 +329,7 @@ public function testSubtractToPreviousHour(): void /** * uuid 9b4e809c-612f-4b15-aae0-1df0acb801b9 */ - #[TestDox('subtract more than an hour')] + #[TestDox('Subtract more than an hour')] public function testSubtractMoreThanAnHour(): void { $clock = new Clock(10, 3); @@ -340,7 +340,7 @@ public function testSubtractMoreThanAnHour(): void /** * uuid 8b04bb6a-3d33-4e6c-8de9-f5de6d2c70d6 */ - #[TestDox('subtract across midnight')] + #[TestDox('Subtract across midnight')] public function testSubtractAcrossMidnight(): void { $clock = new Clock(0, 3); @@ -351,7 +351,7 @@ public function testSubtractAcrossMidnight(): void /** * uuid 07c3bbf7-ce4d-4658-86e8-4a77b7a5ccd9 */ - #[TestDox('subtract more than two hours')] + #[TestDox('Subtract more than two hours')] public function testSubtractMoreThanTwoHours(): void { $clock = new Clock(0, 0); @@ -362,7 +362,7 @@ public function testSubtractMoreThanTwoHours(): void /** * uuid 90ac8a1b-761c-4342-9c9c-cdc3ed5db097 */ - #[TestDox('subtract more than two hours with borrow')] + #[TestDox('Subtract more than two hours with borrow')] public function testSubtractMoreThanTwoHoursWithBorrow(): void { $clock = new Clock(6, 15); @@ -373,7 +373,7 @@ public function testSubtractMoreThanTwoHoursWithBorrow(): void /** * uuid 2149f985-7136-44ad-9b29-ec023a97a2b7 */ - #[TestDox('subtract more than one day (1500 min = 25 hrs)')] + #[TestDox('Subtract more than one day (1500 min = 25 hrs)')] public function testSubtractMoreThanOneDay(): void { $clock = new Clock(5, 32); @@ -384,7 +384,7 @@ public function testSubtractMoreThanOneDay(): void /** * uuid ba11dbf0-ac27-4acb-ada9-3b853ec08c97 */ - #[TestDox('subtract more than two days')] + #[TestDox('Subtract more than two days')] public function testSubtractMoreThanTwoDays(): void { $clock = new Clock(2, 20); @@ -404,7 +404,7 @@ public function testClocksWithSameTime(): void /** * uuid 5d409d4b-f862-4960-901e-ec430160b768 */ - #[TestDox('clocks a minute apart')] + #[TestDox('Clocks a minute apart')] public function testClocksAMinuteApart(): void { $this->assertNotEquals(new Clock(15, 36), new Clock(15, 37)); @@ -413,7 +413,7 @@ public function testClocksAMinuteApart(): void /** * uuid a6045fcf-2b52-4a47-8bb2-ef10a064cba5 */ - #[TestDox('clocks an hour apart')] + #[TestDox('Clocks an hour apart')] public function testClocksAnHourApart(): void { $this->assertNotEquals(new Clock(14, 37), new Clock(15, 37)); @@ -422,7 +422,7 @@ public function testClocksAnHourApart(): void /** * uuid 66b12758-0be5-448b-a13c-6a44bce83527 */ - #[TestDox('clocks with hour overflow')] + #[TestDox('Clocks with hour overflow')] public function testClocksWithHourOverflow(): void { $this->assertEquals(new Clock(10, 37), new Clock(34, 37)); @@ -431,7 +431,7 @@ public function testClocksWithHourOverflow(): void /** * uuid 2b19960c-212e-4a71-9aac-c581592f8111 */ - #[TestDox('clocks with hour overflow by several days')] + #[TestDox('Clocks with hour overflow by several days')] public function testClocksWithHourOverflowBySeveralDays(): void { $this->assertEquals(new Clock(3, 11), new Clock(99, 11)); @@ -440,7 +440,7 @@ public function testClocksWithHourOverflowBySeveralDays(): void /** * uuid 6f8c6541-afac-4a92-b0c2-b10d4e50269f */ - #[TestDox('clocks with negative hour')] + #[TestDox('Clocks with negative hour')] public function testClocksWithNegativeHour(): void { $this->assertEquals(new Clock(22, 40), new Clock(-2, 40)); @@ -449,7 +449,7 @@ public function testClocksWithNegativeHour(): void /** * uuid bb9d5a68-e324-4bf5-a75e-0e9b1f97a90d */ - #[TestDox('clocks with negative hour that wraps')] + #[TestDox('Clocks with negative hour that wraps')] public function testClocksWithNegativeHourThatWraps(): void { $this->assertEquals(new Clock(17, 3), new Clock(-31, 3)); @@ -458,7 +458,7 @@ public function testClocksWithNegativeHourThatWraps(): void /** * uuid 56c0326d-565b-4d19-a26f-63b3205778b7 */ - #[TestDox('clocks with negative hour that wraps multiple times')] + #[TestDox('Clocks with negative hour that wraps multiple times')] public function testClocksWithNegativeHourThatWrapsMultipleTimes(): void { $this->assertEquals(new Clock(13, 49), new Clock(-83, 49)); @@ -467,7 +467,7 @@ public function testClocksWithNegativeHourThatWrapsMultipleTimes(): void /** * uuid c90b9de8-ddff-4ffe-9858-da44a40fdbc2 */ - #[TestDox('clocks with minute overflow')] + #[TestDox('Clocks with minute overflow')] public function testClocksWithMinuteOverflow(): void { $this->assertEquals(new Clock(0, 1), new Clock(0, 1441)); @@ -476,7 +476,7 @@ public function testClocksWithMinuteOverflow(): void /** * uuid 533a3dc5-59a7-491b-b728-a7a34fe325de */ - #[TestDox('clocks with minute overflow by several days')] + #[TestDox('Clocks with minute overflow by several days')] public function testClocksWithMinuteOverflowBySeveralDays(): void { $this->assertEquals(new Clock(2, 2), new Clock(2, 4322)); @@ -485,7 +485,7 @@ public function testClocksWithMinuteOverflowBySeveralDays(): void /** * uuid fff49e15-f7b7-4692-a204-0f6052d62636 */ - #[TestDox('clocks with negative minute')] + #[TestDox('Clocks with negative minute')] public function testClocksWithNegativeMinute(): void { $this->assertEquals(new Clock(2, 40), new Clock(3, -20)); @@ -494,7 +494,7 @@ public function testClocksWithNegativeMinute(): void /** * uuid 605c65bb-21bd-43eb-8f04-878edf508366 */ - #[TestDox('clocks with negative minute that wraps')] + #[TestDox('Clocks with negative minute that wraps')] public function testClocksWithNegativeMinuteThatWraps(): void { $this->assertEquals(new Clock(4, 10), new Clock(5, -1490)); @@ -503,7 +503,7 @@ public function testClocksWithNegativeMinuteThatWraps(): void /** * uuid b87e64ed-212a-4335-91fd-56da8421d077 */ - #[TestDox('clocks with negative minute that wraps multiple times')] + #[TestDox('Clocks with negative minute that wraps multiple times')] public function testClocksWithNegativeMinuteThatWrapsMultipleTimes(): void { $this->assertEquals(new Clock(6, 15), new Clock(6, -4305)); @@ -512,7 +512,7 @@ public function testClocksWithNegativeMinuteThatWrapsMultipleTimes(): void /** * uuid 822fbf26-1f3b-4b13-b9bf-c914816b53dd */ - #[TestDox('clocks with negative hours and minutes')] + #[TestDox('Clocks with negative hours and minutes')] public function testClocksWithNegativeHoursAndMinutes(): void { $this->assertEquals(new Clock(7, 32), new Clock(-12, -268)); @@ -521,7 +521,7 @@ public function testClocksWithNegativeHoursAndMinutes(): void /** * uuid e787bccd-cf58-4a1d-841c-ff80eaaccfaa */ - #[TestDox('clocks with negative hours and minutes that wrap')] + #[TestDox('Clocks with negative hours and minutes that wrap')] public function testClocksWithNegativeHoursAndMinutesThatWrap(): void { $this->assertEquals(new Clock(18, 7), new Clock(-54, -11513)); @@ -530,7 +530,7 @@ public function testClocksWithNegativeHoursAndMinutesThatWrap(): void /** * uuid 96969ca8-875a-48a1-86ae-257a528c44f5 */ - #[TestDox('full clock and zeroed clock')] + #[TestDox('Full clock and zeroed clock')] public function testFullClockAndZeroedClock(): void { $this->assertEquals(new Clock(24, 0), new Clock(0, 0)); diff --git a/exercises/practice/collatz-conjecture/CollatzConjectureTest.php b/exercises/practice/collatz-conjecture/CollatzConjectureTest.php index 1f55fa760..54facaf9a 100644 --- a/exercises/practice/collatz-conjecture/CollatzConjectureTest.php +++ b/exercises/practice/collatz-conjecture/CollatzConjectureTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: 540a3d51-e7a6-47a5-92a3-4ad1838f0bfd */ - #[TestDox('zero steps for one')] + #[TestDox('Zero steps for one')] public function testZeroStepsForOne(): void { $this->assertEquals(0, steps(1)); @@ -24,7 +24,7 @@ public function testZeroStepsForOne(): void /** * uuid: 3d76a0a6-ea84-444a-821a-f7857c2c1859 */ - #[TestDox('divide if even')] + #[TestDox('Divide if even')] public function testDivideIfEven(): void { $this->assertEquals(4, steps(16)); @@ -33,7 +33,7 @@ public function testDivideIfEven(): void /** * uuid: 754dea81-123c-429e-b8bc-db20b05a87b9 */ - #[TestDox('even and odd steps')] + #[TestDox('Even and odd steps')] public function testEvenAndOddSteps(): void { $this->assertEquals(9, steps(12)); @@ -42,7 +42,7 @@ public function testEvenAndOddSteps(): void /** * uuid: ecfd0210-6f85-44f6-8280-f65534892ff6 */ - #[TestDox('large number of even and odd steps')] + #[TestDox('Large number of even and odd steps')] public function testLargeNumberOfEvenAndOddSteps(): void { $this->assertEquals(152, steps(1000000)); @@ -51,7 +51,7 @@ public function testLargeNumberOfEvenAndOddSteps(): void /** * uuid: 2187673d-77d6-4543-975e-66df6c50e2da */ - #[TestDox('zero is an error')] + #[TestDox('Zero is an error')] public function testZeroIsAnError(): void { $this->expectException(InvalidArgumentException::class); @@ -65,7 +65,7 @@ public function testZeroIsAnError(): void /** * uuid: ec11f479-56bc-47fd-a434-bcd7a31a7a2e */ - #[TestDox('negative value is an error')] + #[TestDox('Negative value is an error')] public function testNegativeValueIsAnError(): void { $this->expectException(InvalidArgumentException::class); diff --git a/exercises/practice/connect/ConnectTest.php b/exercises/practice/connect/ConnectTest.php index 61a062cf3..80058603a 100644 --- a/exercises/practice/connect/ConnectTest.php +++ b/exercises/practice/connect/ConnectTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 6eff0df4-3e92-478d-9b54-d3e8b354db56 */ - #[TestDox('an empty board has no winner')] + #[TestDox('An empty board has no winner')] public function testEmptyBoardHasNoWinner(): void { $lines = [ @@ -51,7 +51,7 @@ public function testOneByOneBoardWhite(): void /** * uuid 819fde60-9ae2-485e-a024-cbb8ea68751b */ - #[TestDox('only edges does not make a winner')] + #[TestDox('Only edges does not make a winner')] public function testOnlyEgesDoesNotMakeAWinner(): void { $lines = [ @@ -66,7 +66,7 @@ public function testOnlyEgesDoesNotMakeAWinner(): void /** * uuid 2c56a0d5-9528-41e5-b92b-499dfe08506c */ - #[TestDox('illegal diagonal does not make a winner')] + #[TestDox('Illegal diagonal does not make a winner')] public function testIllegalDiagonalDoesNotMakeAWinner(): void { $lines = [ @@ -82,7 +82,7 @@ public function testIllegalDiagonalDoesNotMakeAWinner(): void /** * uuid 41cce3ef-43ca-4963-970a-c05d39aa1cc1 */ - #[TestDox('nobody wins crossing adjacent angles')] + #[TestDox('Nobody wins crossing adjacent angles')] public function testNobodyWinsCrossingAdjacentAngles(): void { $lines = [ diff --git a/exercises/practice/crypto-square/CryptoSquareTest.php b/exercises/practice/crypto-square/CryptoSquareTest.php index 742b38b44..e8e039c3c 100644 --- a/exercises/practice/crypto-square/CryptoSquareTest.php +++ b/exercises/practice/crypto-square/CryptoSquareTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 407c3837-9aa7-4111-ab63-ec54b58e8e9f */ - #[TestDox('empty plaintext results in an empty ciphertext')] + #[TestDox('Empty plaintext results in an empty ciphertext')] public function testEmptyPlaintextResultsInAnEmptyCiphertext(): void { $this->assertEquals("", crypto_square("")); @@ -24,7 +24,7 @@ public function testEmptyPlaintextResultsInAnEmptyCiphertext(): void /** * uuid aad04a25-b8bb-4304-888b-581bea8e0040 */ - #[TestDox('normalization results in empty plaintext')] + #[TestDox('Normalization results in empty plaintext')] public function testNormalizationResultsInEmptyPlaintext(): void { $this->assertEquals("", crypto_square("... --- ...")); diff --git a/exercises/practice/etl/EtlTest.php b/exercises/practice/etl/EtlTest.php index ff5f0038d..80b18fcc6 100644 --- a/exercises/practice/etl/EtlTest.php +++ b/exercises/practice/etl/EtlTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 78a7a9f9-4490-4a47-8ee9-5a38bb47d28f */ - #[TestDox('single letter')] + #[TestDox('Single letter')] public function testTransformOneValue(): void { $old = ['1' => ['A']]; @@ -26,7 +26,7 @@ public function testTransformOneValue(): void /** * uuid 60dbd000-451d-44c7-bdbb-97c73ac1f497 */ - #[TestDox('single score with multiple letters')] + #[TestDox('Single score with multiple letters')] public function testTransformMoreValues(): void { $old = [1 => ['A', 'E', 'I', 'O', 'U']]; @@ -37,7 +37,7 @@ public function testTransformMoreValues(): void /** * uuid f5c5de0c-301f-4fdd-a0e5-df97d4214f54 */ - #[TestDox('multiple scores with multiple letters')] + #[TestDox('Multiple scores with multiple letters')] public function testTransformMoreKeys(): void { $old = [1 => ['A', 'E'], 2 => ['D', 'G']]; @@ -48,7 +48,7 @@ public function testTransformMoreKeys(): void /** * uuid 5db8ea89-ecb4-4dcd-902f-2b418cc87b9d */ - #[TestDox('multiple scores with differing numbers of letters')] + #[TestDox('Multiple scores with differing numbers of letters')] public function testTransformFullDataset(): void { $old = [ diff --git a/exercises/practice/flatten-array/FlattenArrayTest.php b/exercises/practice/flatten-array/FlattenArrayTest.php index c20d70b6a..1112418f0 100644 --- a/exercises/practice/flatten-array/FlattenArrayTest.php +++ b/exercises/practice/flatten-array/FlattenArrayTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 8c71dabd-da60-422d-a290-4a571471fb14 */ - #[TestDox('empty')] + #[TestDox('Empty')] public function testEmpty(): void { $input = []; @@ -26,7 +26,7 @@ public function testEmpty(): void /** * uuid d268b919-963c-442d-9f07-82b93f1b518c */ - #[TestDox('no nesting')] + #[TestDox('No nesting')] public function testWithOutNesting(): void { $input = [0, 1, 2]; @@ -37,7 +37,7 @@ public function testWithOutNesting(): void /** * uuid 3f15bede-c856-479e-bb71-1684b20c6a30 */ - #[TestDox('flattens a nested array')] + #[TestDox('Flattens a nested array')] public function testFlattensANestedArray(): void { $input = [[[]]]; @@ -48,7 +48,7 @@ public function testFlattensANestedArray(): void /** * uuid c84440cc-bb3a-48a6-862c-94cf23f2815d */ - #[TestDox('flattens array with just integers present')] + #[TestDox('Flattens array with just integers present')] public function testArrayWithJustIntegersPresent(): void { $input = [1, [2, 3, 4, 5, 6, 7], 8]; @@ -81,7 +81,7 @@ public function testSixLevelNesting(): void /** * uuid 0705a8e5-dc86-4cec-8909-150c5e54fa9c */ - #[TestDox('null values are omitted from the final result')] + #[TestDox('Null values are omitted from the final result')] public function testNullValuesAreOmittedFromTheFinalResult(): void { $input = [1, 2, null]; @@ -92,7 +92,7 @@ public function testNullValuesAreOmittedFromTheFinalResult(): void /** * uuid bc72da10-5f55-4ada-baf3-50e4da02ec8e */ - #[TestDox('consecutive null values at the front of the array are omitted from the final result')] + #[TestDox('Consecutive null values at the front of the array are omitted from the final result')] public function testConsecutiveNullValuesAtTheFrontOfTheArrayAreOmittedFromTheFinalResult(): void { $input = [null, null, 3]; @@ -103,7 +103,7 @@ public function testConsecutiveNullValuesAtTheFrontOfTheArrayAreOmittedFromTheFi /** * uuid 6991836d-0d9b-4703-80a0-3f1f23eb5981 */ - #[TestDox('consecutive null values in the middle of the array are omitted from the final result')] + #[TestDox('Consecutive null values in the middle of the array are omitted from the final result')] public function testConsecutiveNullValuesInTheMiddleOfTheArrayAreOmittedFromTheFinalResult(): void { $input = [1, null, null, 4]; @@ -125,7 +125,7 @@ public function testSixLevelNestedArrayWithNullValues(): void /** * uuid 51f5d9af-8f7f-4fb5-a156-69e8282cb275 */ - #[TestDox('all values in nested array are null')] + #[TestDox('All values in nested array are null')] public function testAllValuesInNestedArrayAreNull(): void { $input = [null, [[[null]]], null, null, [[null, null], null], null]; diff --git a/exercises/practice/food-chain/FoodChainTest.php b/exercises/practice/food-chain/FoodChainTest.php index bfeb77470..44985a89a 100644 --- a/exercises/practice/food-chain/FoodChainTest.php +++ b/exercises/practice/food-chain/FoodChainTest.php @@ -17,7 +17,7 @@ public static function setUpBeforeClass(): void /** * uuid: 751dce68-9412-496e-b6e8-855998c56166 */ - #[TestDox('fly')] + #[TestDox('Fly')] public function testFly(): void { $foodChain = new FoodChain(); @@ -31,7 +31,7 @@ public function testFly(): void /** * uuid: 6c56f861-0c5e-4907-9a9d-b2efae389379 */ - #[TestDox('spider')] + #[TestDox('Spider')] public function testSpider(): void { $foodChain = new FoodChain(); @@ -47,7 +47,7 @@ public function testSpider(): void /** * uuid: 3edf5f33-bef1-4e39-ae67-ca5eb79203fa */ - #[TestDox('bird')] + #[TestDox('Bird')] public function testBird(): void { $foodChain = new FoodChain(); @@ -64,7 +64,7 @@ public function testBird(): void /** * uuid: e866a758-e1ff-400e-9f35-f27f28cc288f */ - #[TestDox('cat')] + #[TestDox('Cat')] public function testCat(): void { $foodChain = new FoodChain(); @@ -82,7 +82,7 @@ public function testCat(): void /** * uuid: 3f02c30e-496b-4b2a-8491-bc7e2953cafb */ - #[TestDox('dog')] + #[TestDox('Dog')] public function testDog(): void { $foodChain = new FoodChain(); @@ -101,7 +101,7 @@ public function testDog(): void /** * uuid: 4b3fd221-01ea-46e0-825b-5734634fbc59 */ - #[TestDox('goat')] + #[TestDox('Goat')] public function testGoat(): void { $foodChain = new FoodChain(); @@ -121,7 +121,7 @@ public function testGoat(): void /** * uuid: 1b707da9-7001-4fac-941f-22ad9c7a65d4 */ - #[TestDox('cow')] + #[TestDox('Cow')] public function testCow(): void { $foodChain = new FoodChain(); @@ -142,7 +142,7 @@ public function testCow(): void /** * uuid: 3cb10d46-ae4e-4d2c-9296-83c9ffc04cdc */ - #[TestDox('horse')] + #[TestDox('Horse')] public function testHorse(): void { $foodChain = new FoodChain(); @@ -156,7 +156,7 @@ public function testHorse(): void /** * uuid: 22b863d5-17e4-4d1e-93e4-617329a5c050 */ - #[TestDox('multiple verses')] + #[TestDox('Multiple verses')] public function testMultipleVerses(): void { $foodChain = new FoodChain(); @@ -180,7 +180,7 @@ public function testMultipleVerses(): void /** * uuid: e626b32b-745c-4101-bcbd-3b13456893db */ - #[TestDox('full song')] + #[TestDox('Full song')] public function testFullSong(): void { $foodChain = new FoodChain(); diff --git a/exercises/practice/game-of-life/GameOfLifeTest.php b/exercises/practice/game-of-life/GameOfLifeTest.php index 0be20665b..994d9fd2f 100644 --- a/exercises/practice/game-of-life/GameOfLifeTest.php +++ b/exercises/practice/game-of-life/GameOfLifeTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid ae86ea7d-bd07-4357-90b3-ac7d256bd5c5 */ - #[TestDox('empty matrix')] + #[TestDox('Empty matrix')] public function testEmptyMatrix(): void { $matrix = []; @@ -30,7 +30,7 @@ public function testEmptyMatrix(): void /** * uuid 4ea5ccb7-7b73-4281-954a-bed1b0f139a5 */ - #[TestDox('live cells with zero live neighbors die')] + #[TestDox('Live cells with zero live neighbors die')] public function testLiveCellsWithZeroLiveNeighborsDie(): void { $matrix = [ @@ -53,7 +53,7 @@ public function testLiveCellsWithZeroLiveNeighborsDie(): void /** * uuid df245adc-14ff-4f9c-b2ae-f465ef5321b2 */ - #[TestDox('live cells with only one live neighbor die')] + #[TestDox('Live cells with only one live neighbor die')] public function testLiveCellsWithOnlyOneLiveNeighborDie(): void { $matrix = [ @@ -76,7 +76,7 @@ public function testLiveCellsWithOnlyOneLiveNeighborDie(): void /** * uuid 2a713b56-283c-48c8-adae-1d21306c80ae */ - #[TestDox('live cells with two live neighbors stay alive')] + #[TestDox('Live cells with two live neighbors stay alive')] public function testLiveCellsWithTwoLiveNeighborsStayAlive(): void { $matrix = [ @@ -99,7 +99,7 @@ public function testLiveCellsWithTwoLiveNeighborsStayAlive(): void /** * uuid 86d5c5a5-ab7b-41a1-8907-c9b3fc5e9dae */ - #[TestDox('live cells with three live neighbors stay alive')] + #[TestDox('Live cells with three live neighbors stay alive')] public function testLiveCellsWithThreeLiveNeighborsStayAlive(): void { $matrix = [ @@ -122,7 +122,7 @@ public function testLiveCellsWithThreeLiveNeighborsStayAlive(): void /** * uuid 015f60ac-39d8-4c6c-8328-57f334fc9f89 */ - #[TestDox('dead cells with three live neighbors become alive')] + #[TestDox('Dead cells with three live neighbors become alive')] public function testDeadCellsWithThreeLiveNeighborsBecomeAlive(): void { $matrix = [ @@ -145,7 +145,7 @@ public function testDeadCellsWithThreeLiveNeighborsBecomeAlive(): void /** * uuid 2ee69c00-9d41-4b8b-89da-5832e735ccf1 */ - #[TestDox('live cells with four or more neighbors die')] + #[TestDox('Live cells with four or more neighbors die')] public function testLiveCellsWithFourOrMoreNeighborsDie(): void { $matrix = [ @@ -168,7 +168,7 @@ public function testLiveCellsWithFourOrMoreNeighborsDie(): void /** * uuid a79b42be-ed6c-4e27-9206-43da08697ef6 */ - #[TestDox('bigger matrix')] + #[TestDox('Bigger matrix')] public function testBiggerMatrix(): void { $matrix = [ diff --git a/exercises/practice/grains/GrainsTest.php b/exercises/practice/grains/GrainsTest.php index 5c39848d7..6c1b5c6fe 100644 --- a/exercises/practice/grains/GrainsTest.php +++ b/exercises/practice/grains/GrainsTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: 9fbde8de-36b2-49de-baf2-cd42d6f28405 */ - #[TestDox('grains on square 1')] + #[TestDox('Grains on square 1')] public function testGrainsOnSquare1(): void { $this->assertSame('1', square(1)); @@ -24,7 +24,7 @@ public function testGrainsOnSquare1(): void /** * uuid: ee1f30c2-01d8-4298-b25d-c677331b5e6d */ - #[TestDox('grains on square 2')] + #[TestDox('Grains on square 2')] public function testGrainsOnSquare2(): void { $this->assertSame('2', square(2)); @@ -33,7 +33,7 @@ public function testGrainsOnSquare2(): void /** * uuid: 10f45584-2fc3-4875-8ec6-666065d1163b */ - #[TestDox('grains on square 3')] + #[TestDox('Grains on square 3')] public function testGrainsOnSquare3(): void { $this->assertSame('4', square(3)); @@ -42,7 +42,7 @@ public function testGrainsOnSquare3(): void /** * uuid: a7cbe01b-36f4-4601-b053-c5f6ae055170 */ - #[TestDox('grains on square 4')] + #[TestDox('Grains on square 4')] public function testGrainsOnSquare4(): void { $this->assertSame('8', square(4)); @@ -51,7 +51,7 @@ public function testGrainsOnSquare4(): void /** * uuid: c50acc89-8535-44e4-918f-b848ad2817d4 */ - #[TestDox('grains on square 16')] + #[TestDox('Grains on square 16')] public function testGrainsOnSquare16(): void { $this->assertSame('32768', square(16)); @@ -60,7 +60,7 @@ public function testGrainsOnSquare16(): void /** * uuid: acd81b46-c2ad-4951-b848-80d15ed5a04f */ - #[TestDox('grains on square 32')] + #[TestDox('Grains on square 32')] public function testGrainsOnSquare32(): void { $this->assertSame('2147483648', square(32)); @@ -69,7 +69,7 @@ public function testGrainsOnSquare32(): void /** * uuid: c73b470a-5efb-4d53-9ac6-c5f6487f227b */ - #[TestDox('grains on square 64')] + #[TestDox('Grains on square 64')] public function testGrainsOnSquare64(): void { $this->assertSame('9223372036854775808', square(64)); @@ -78,7 +78,7 @@ public function testGrainsOnSquare64(): void /** * uuid: 1d47d832-3e85-4974-9466-5bd35af484e3 */ - #[TestDox('square 0 is invalid')] + #[TestDox('Square 0 is invalid')] public function testSquare0IsInvalid(): void { $this->expectException(InvalidArgumentException::class); @@ -89,7 +89,7 @@ public function testSquare0IsInvalid(): void /** * uuid: 61974483-eeb2-465e-be54-ca5dde366453 */ - #[TestDox('negative square is invalid')] + #[TestDox('Negative square is invalid')] public function testRejectsNegative(): void { $this->expectException(InvalidArgumentException::class); @@ -100,7 +100,7 @@ public function testRejectsNegative(): void /** * uuid: a95e4374-f32c-45a7-a10d-ffec475c012f */ - #[TestDox('square greater than 64 is invalid')] + #[TestDox('Square greater than 64 is invalid')] public function testRejectsGreaterThan64(): void { $this->expectException(InvalidArgumentException::class); @@ -111,7 +111,7 @@ public function testRejectsGreaterThan64(): void /** * uuid: 6eb07385-3659-4b45-a6be-9dc474222750 */ - #[TestDox('returns the total number of grains on the board')] + #[TestDox('Returns the total number of grains on the board')] public function testTotal(): void { $this->assertSame('18446744073709551615', total()); diff --git a/exercises/practice/hamming/HammingTest.php b/exercises/practice/hamming/HammingTest.php index 16886c046..7033f2e1d 100644 --- a/exercises/practice/hamming/HammingTest.php +++ b/exercises/practice/hamming/HammingTest.php @@ -77,7 +77,7 @@ public function testDisallowFirstStrandLonger(): void /** * uuid: dab38838-26bb-4fff-acbe-3b0a9bfeba2d */ - #[TestDox(': Disallow second strand longer')] + #[TestDox('Disallow second strand longer')] public function testDisallowSecondStrandLonger(): void { $this->expectException('InvalidArgumentException'); @@ -88,7 +88,7 @@ public function testDisallowSecondStrandLonger(): void /** * uuid: b764d47c-83ff-4de2-ab10-6cfe4b15c0f3 */ - #[TestDox(': Disallow empty first strand')] + #[TestDox('Disallow empty first strand')] public function testDisallowEmptyFirstStrand(): void { $this->expectException('InvalidArgumentException'); @@ -99,7 +99,7 @@ public function testDisallowEmptyFirstStrand(): void /** * uuid: 9ab9262f-3521-4191-81f5-0ed184a5aa89 */ - #[TestDox(': Disallow empty second strand')] + #[TestDox('Disallow empty second strand')] public function testDisallowEmptySecondStrand(): void { $this->expectException('InvalidArgumentException'); diff --git a/exercises/practice/isogram/IsogramTest.php b/exercises/practice/isogram/IsogramTest.php index 660c2f704..3ef03447c 100644 --- a/exercises/practice/isogram/IsogramTest.php +++ b/exercises/practice/isogram/IsogramTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid a0e97d2d-669e-47c7-8134-518a1e2c4555 */ - #[TestDox('empty string')] + #[TestDox('Empty string')] public function testEmptyString(): void { $this->assertTrue(isIsogram('')); @@ -24,7 +24,7 @@ public function testEmptyString(): void /** * uuid 9a001b50-f194-4143-bc29-2af5ec1ef652 */ - #[TestDox('isogram with only lower case characters')] + #[TestDox('Isogram with only lower case characters')] public function testIsogramWithOnlyLowercaseCharacters(): void { $this->assertTrue(isIsogram('isogram')); @@ -33,7 +33,7 @@ public function testIsogramWithOnlyLowercaseCharacters(): void /** * uuid 8ddb0ca3-276e-4f8b-89da-d95d5bae78a4 */ - #[TestDox('word with one duplicated character')] + #[TestDox('Word with one duplicated character')] public function testWordWithOneDuplicatedCharacter(): void { $this->assertFalse(isIsogram('eleven')); @@ -42,7 +42,7 @@ public function testWordWithOneDuplicatedCharacter(): void /** * uuid 6450b333-cbc2-4b24-a723-0b459b34fe18 */ - #[TestDox('word with one duplicated character from the end of the alphabet')] + #[TestDox('Word with one duplicated character from the end of the alphabet')] public function testWordWithOneDuplicatedCharacterFromTheEndOfTheAlphabet(): void { $this->assertFalse(isIsogram('zzyzx')); @@ -51,7 +51,7 @@ public function testWordWithOneDuplicatedCharacterFromTheEndOfTheAlphabet(): voi /** * uuid a15ff557-dd04-4764-99e7-02cc1a385863 */ - #[TestDox('longest reported english isogram')] + #[TestDox('Longest reported english isogram')] public function testLongestReportedEnglishIsogram(): void { $this->assertTrue(isIsogram('subdermatoglyphic')); @@ -60,7 +60,7 @@ public function testLongestReportedEnglishIsogram(): void /** * uuid f1a7f6c7-a42f-4915-91d7-35b2ea11c92e */ - #[TestDox('word with duplicated character in mixed case')] + #[TestDox('Word with duplicated character in mixed case')] public function testWordWithDuplicatedCharacterInMixedCase(): void { $this->assertFalse(isIsogram('Alphabet')); @@ -69,7 +69,7 @@ public function testWordWithDuplicatedCharacterInMixedCase(): void /** * uuid 14a4f3c1-3b47-4695-b645-53d328298942 */ - #[TestDox('word with duplicated character in mixed case, lowercase first')] + #[TestDox('Word with duplicated character in mixed case, lowercase first')] public function testWordWithDuplicatedCharacterInMixedCaseLowercaseFirst(): void { $this->assertFalse(isIsogram('alphAbet')); @@ -78,7 +78,7 @@ public function testWordWithDuplicatedCharacterInMixedCaseLowercaseFirst(): void /** * uuid 423b850c-7090-4a8a-b057-97f1cadd7c42 */ - #[TestDox('hypothetical isogrammic word with hyphen')] + #[TestDox('Hypothetical isogrammic word with hyphen')] public function testHypotheticalIsogrammicWordWithHyphen(): void { $this->assertTrue(isIsogram('thumbscrew-japingly')); @@ -87,7 +87,7 @@ public function testHypotheticalIsogrammicWordWithHyphen(): void /** * uuid 93dbeaa0-3c5a-45c2-8b25-428b8eacd4f2 */ - #[TestDox('hypothetical word with duplicated character following hyphen')] + #[TestDox('Hypothetical word with duplicated character following hyphen')] public function testHypotheticalWordWithDuplicatedCharacterFollowingHyphen(): void { $this->assertFalse(isIsogram('thumbscrew-jappingly')); @@ -96,7 +96,7 @@ public function testHypotheticalWordWithDuplicatedCharacterFollowingHyphen(): vo /** * uuid 36b30e5c-173f-49c6-a515-93a3e825553f */ - #[TestDox('isogram with duplicated hyphen')] + #[TestDox('Isogram with duplicated hyphen')] public function testIsogramWithDuplicatedHyphen(): void { $this->assertTrue(isIsogram('six-year-old')); @@ -105,7 +105,7 @@ public function testIsogramWithDuplicatedHyphen(): void /** * uuid cdabafa0-c9f4-4c1f-b142-689c6ee17d93 */ - #[TestDox('made-up name that is an isogram')] + #[TestDox('Made-up name that is an isogram')] public function testMadeupNameThatIsAnIsogram(): void { $this->assertTrue(isIsogram('Emily Jung Schwartzkopf')); @@ -114,7 +114,7 @@ public function testMadeupNameThatIsAnIsogram(): void /** * uuid 5fc61048-d74e-48fd-bc34-abfc21552d4d */ - #[TestDox('duplicated character in the middle')] + #[TestDox('Duplicated character in the middle')] public function testDuplicatedCharacterInTheMiddle(): void { $this->assertFalse(isIsogram('accentor')); @@ -123,7 +123,7 @@ public function testDuplicatedCharacterInTheMiddle(): void /** * uuid 310ac53d-8932-47bc-bbb4-b2b94f25a83e */ - #[TestDox('same first and last characters')] + #[TestDox('Same first and last characters')] public function testSameFirstAndLastCharacters(): void { $this->assertFalse(isIsogram('angola')); @@ -132,7 +132,7 @@ public function testSameFirstAndLastCharacters(): void /** * uuid 0d0b8644-0a1e-4a31-a432-2b3ee270d847 */ - #[TestDox('word with duplicated character and with two hyphens')] + #[TestDox('Word with duplicated character and with two hyphens')] public function testWordWithDuplicatedCharacterAndWithTwoHyphens(): void { $this->assertFalse(isIsogram('up-to-date')); diff --git a/exercises/practice/kindergarten-garden/KindergartenGardenTest.php b/exercises/practice/kindergarten-garden/KindergartenGardenTest.php index 83be1d737..4126d1c52 100644 --- a/exercises/practice/kindergarten-garden/KindergartenGardenTest.php +++ b/exercises/practice/kindergarten-garden/KindergartenGardenTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: 1fc316ed-17ab-4fba-88ef-3ae78296b692 */ - #[TestDox('partial garden -> garden with single student')] + #[TestDox('Partial garden -> Garden with single student')] public function testGardenSingleStudent(): void { $garden = new KindergartenGarden("RC\nGG"); @@ -25,7 +25,7 @@ public function testGardenSingleStudent(): void /** * uuid: acd19dc1-2200-4317-bc2a-08f021276b40 */ - #[TestDox('partial garden -> different garden with single student')] + #[TestDox('Partial garden -> Different garden with single student')] public function testDifferentGardenSingleStudent(): void { $garden = new KindergartenGarden("VC\nRC"); @@ -35,7 +35,7 @@ public function testDifferentGardenSingleStudent(): void /** * uuid: c376fcc8-349c-446c-94b0-903947315757 */ - #[TestDox('partial garden -> garden with two students')] + #[TestDox('Partial garden -> Garden with two students')] public function testGardenWithTwoStudents(): void { $garden = new KindergartenGarden("VVCG\nVVRC"); @@ -45,7 +45,7 @@ public function testGardenWithTwoStudents(): void /** * uuid: 2d620f45-9617-4924-9d27-751c80d17db9 */ - #[TestDox("partial garden -> multiple students for the same garden with three students -> second student's garden")] + #[TestDox("Partial garden -> Multiple students for the same garden with three students -> Second student's garden")] public function testSecondStudentsGarden(): void { $garden = new KindergartenGarden("VVCCGG\nVVCCGG"); @@ -55,7 +55,7 @@ public function testSecondStudentsGarden(): void /** * uuid: 57712331-4896-4364-89f8-576421d69c44 */ - #[TestDox("partial garden -> multiple students for the same garden with three students -> third student's garden")] + #[TestDox("Partial garden -> Multiple students for the same garden with three students -> Third student's garden")] public function testThirdStudentsGarden(): void { $garden = new KindergartenGarden("VVCCGG\nVVCCGG"); @@ -65,7 +65,7 @@ public function testThirdStudentsGarden(): void /** * uuid: 149b4290-58e1-40f2-8ae4-8b87c46e765b */ - #[TestDox("full garden -> for Alice, first student's garden")] + #[TestDox("Full garden -> For Alice, first student's garden")] public function testFullGardenForAlice(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -75,7 +75,7 @@ public function testFullGardenForAlice(): void /** * uuid: ba25dbbc-10bd-4a37-b18e-f89ecd098a5e */ - #[TestDox("full garden -> for Bob, second student's garden")] + #[TestDox("Full garden -> For Bob, second student's garden")] public function testFullGardenForBob(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -85,7 +85,7 @@ public function testFullGardenForBob(): void /** * uuid: 566b621b-f18e-4c5f-873e-be30544b838c */ - #[TestDox('full garden -> for Charlie')] + #[TestDox('Full garden -> For Charlie')] public function testFullGardenForCharlie(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -95,7 +95,7 @@ public function testFullGardenForCharlie(): void /** * uuid: 3ad3df57-dd98-46fc-9269-1877abf612aa */ - #[TestDox('full garden -> for David')] + #[TestDox('Full garden -> For David')] public function testFullGardenForDavid(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -105,7 +105,7 @@ public function testFullGardenForDavid(): void /** * uuid: 0f0a55d1-9710-46ed-a0eb-399ba8c72db2 */ - #[TestDox('full garden -> for Eve')] + #[TestDox('Full garden -> For Eve')] public function testFullGardenForEve(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -115,7 +115,7 @@ public function testFullGardenForEve(): void /** * uuid: a7e80c90-b140-4ea1-aee3-f4625365c9a4 */ - #[TestDox('full garden -> for Fred')] + #[TestDox('Full garden -> For Fred')] public function testFullGardenForFred(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -125,7 +125,7 @@ public function testFullGardenForFred(): void /** * uuid: 9d94b273-2933-471b-86e8-dba68694c615 */ - #[TestDox('full garden -> for Ginny')] + #[TestDox('Full garden -> For Ginny')] public function testFullGardenForGinny(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -135,7 +135,7 @@ public function testFullGardenForGinny(): void /** * uuid: f55bc6c2-ade8-4844-87c4-87196f1b7258 */ - #[TestDox('full garden -> for Harriet')] + #[TestDox('Full garden -> For Harriet')] public function testFullGardenForHarriet(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -145,7 +145,7 @@ public function testFullGardenForHarriet(): void /** * uuid: 759070a3-1bb1-4dd4-be2c-7cce1d7679ae */ - #[TestDox('full garden -> for Ileana')] + #[TestDox('Full garden -> For Ileana')] public function testFullGardenForIleana(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -155,7 +155,7 @@ public function testFullGardenForIleana(): void /** * uuid: 78578123-2755-4d4a-9c7d-e985b8dda1c6 */ - #[TestDox('full garden -> for Joseph')] + #[TestDox('Full garden -> For Joseph')] public function testFullGardenForJoseph(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -165,7 +165,7 @@ public function testFullGardenForJoseph(): void /** * uuid: 6bb66df7-f433-41ab-aec2-3ead6e99f65b */ - #[TestDox("full garden -> for Kincaid, second to last student's garden")] + #[TestDox("Full garden -> For Kincaid, second to last student's garden")] public function testFullGardenForKincaid(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); @@ -175,7 +175,7 @@ public function testFullGardenForKincaid(): void /** * uuid: d7edec11-6488-418a-94e6-ed509e0fa7eb */ - #[TestDox("full garden -> for Larry, last student's garden")] + #[TestDox("Full garden -> For Larry, last student's garden")] public function testFullGardenForLarry(): void { $garden = new KindergartenGarden("VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"); diff --git a/exercises/practice/largest-series-product/LargestSeriesProductTest.php b/exercises/practice/largest-series-product/LargestSeriesProductTest.php index f4d2b3e3b..35890be79 100644 --- a/exercises/practice/largest-series-product/LargestSeriesProductTest.php +++ b/exercises/practice/largest-series-product/LargestSeriesProductTest.php @@ -19,7 +19,7 @@ public static function setUpBeforeClass(): void /** * uuid: 7c82f8b7-e347-48ee-8a22-f672323324d4 */ - #[TestDox('finds the largest product if span equals length')] + #[TestDox('Finds the largest product if span equals length')] public function testFindsTheLargestProductIfSpanEqualsLength(): void { $series = new Series("29"); @@ -29,7 +29,7 @@ public function testFindsTheLargestProductIfSpanEqualsLength(): void /** * uuid: 88523f65-21ba-4458-a76a-b4aaf6e4cb5e */ - #[TestDox('can find the largest product of 2 with numbers in order')] + #[TestDox('Can find the largest product of 2 with numbers in order')] public function testCanFindTheLargestProductOf2WithNumbersInOrder(): void { // The number starts with a 0, qualifying it to be an octal @@ -41,7 +41,7 @@ public function testCanFindTheLargestProductOf2WithNumbersInOrder(): void /** * uuid: f1376b48-1157-419d-92c2-1d7e36a70b8a */ - #[TestDox('can find the largest product of 2')] + #[TestDox('Can find the largest product of 2')] public function testCanFindTheLargestProductOf2(): void { $series = new Series("576802143"); @@ -51,7 +51,7 @@ public function testCanFindTheLargestProductOf2(): void /** * uuid: 46356a67-7e02-489e-8fea-321c2fa7b4a4 */ - #[TestDox('can find the largest product of 3 with numbers in order')] + #[TestDox('Can find the largest product of 3 with numbers in order')] public function testCanFindTheLargestProductOf3WithNumbersInOrder(): void { $series = new Series("0123456789"); @@ -61,7 +61,7 @@ public function testCanFindTheLargestProductOf3WithNumbersInOrder(): void /** * uuid: a2dcb54b-2b8f-4993-92dd-5ce56dece64a */ - #[TestDox('can find the largest product of 3')] + #[TestDox('Can find the largest product of 3')] public function testCanFindTheLargestProductOf3(): void { $series = new Series("1027839564"); @@ -71,7 +71,7 @@ public function testCanFindTheLargestProductOf3(): void /** * uuid: 673210a3-33cd-4708-940b-c482d7a88f9d */ - #[TestDox('can find the largest product of 5 with numbers in order')] + #[TestDox('Can find the largest product of 5 with numbers in order')] public function testCanFindTheLargestProductOf5WithNumbersInOrder(): void { $series = new Series("0123456789"); @@ -81,7 +81,7 @@ public function testCanFindTheLargestProductOf5WithNumbersInOrder(): void /** * uuid: 02acd5a6-3bbf-46df-8282-8b313a80a7c9 */ - #[TestDox('can get the largest product of a big number')] + #[TestDox('Can get the largest product of a big number')] public function testCanGetTheLargestProductOfABigNumber(): void { $series = new Series("73167176531330624919225119674426574742355349194934"); @@ -91,7 +91,7 @@ public function testCanGetTheLargestProductOfABigNumber(): void /** * uuid: 76dcc407-21e9-424c-a98e-609f269622b5 */ - #[TestDox('reports zero if the only digits are zero')] + #[TestDox('Reports zero if the only digits are zero')] public function testReportsZeroIfTheOnlyDigitsAreZero(): void { $series = new Series("0000"); @@ -101,7 +101,7 @@ public function testReportsZeroIfTheOnlyDigitsAreZero(): void /** * uuid: 6ef0df9f-52d4-4a5d-b210-f6fae5f20e19 */ - #[TestDox('reports zero if all spans include zero')] + #[TestDox('Reports zero if all spans include zero')] public function testReportsZeroIfAllSpansIncludeZero(): void { $series = new Series("99099"); @@ -111,7 +111,7 @@ public function testReportsZeroIfAllSpansIncludeZero(): void /** * uuid: 0ae1ce53-d9ba-41bb-827f-2fceb64f058b */ - #[TestDox('rejects span longer than string length')] + #[TestDox('Rejects span longer than string length')] public function testRejectsSpanLongerThanStringLength(): void { $this->expectException(InvalidArgumentException::class); @@ -123,7 +123,7 @@ public function testRejectsSpanLongerThanStringLength(): void /** * uuid: 06bc8b90-0c51-4c54-ac22-3ec3893a079e */ - #[TestDox('reports 1 for empty string and empty product (0 span)')] + #[TestDox('Reports 1 for empty string and empty product (0 span)')] public function testReportsOneForEmptyStringAndEmptyProductSpanZero(): void { $series = new Series(""); @@ -133,7 +133,7 @@ public function testReportsOneForEmptyStringAndEmptyProductSpanZero(): void /** * uuid: 3ec0d92e-f2e2-4090-a380-70afee02f4c0 */ - #[TestDox('reports 1 for nonempty string and empty product (0 span)')] + #[TestDox('Reports 1 for nonempty string and empty product (0 span)')] public function testReportsOneForNonemptyStringAndEmptyProductSpanZero(): void { $series = new Series("123"); @@ -143,7 +143,7 @@ public function testReportsOneForNonemptyStringAndEmptyProductSpanZero(): void /** * uuid: 6cf66098-a6af-4223-aab1-26aeeefc7402 */ - #[TestDox('rejects empty string and nonzero span')] + #[TestDox('Rejects empty string and nonzero span')] public function testRejectsEmptyStringAndNonzeroSpan(): void { $this->expectException(InvalidArgumentException::class); @@ -155,7 +155,7 @@ public function testRejectsEmptyStringAndNonzeroSpan(): void /** * uuid: 7a38f2d6-3c35-45f6-8d6f-12e6e32d4d74 */ - #[TestDox('rejects invalid character in digits')] + #[TestDox('Rejects invalid character in digits')] public function testRejectsInvalidCharacterInDigits(): void { $this->expectException(InvalidArgumentException::class); @@ -167,7 +167,7 @@ public function testRejectsInvalidCharacterInDigits(): void /** * uuid: c859f34a-9bfe-4897-9c2f-6d7f8598e7f0 */ - #[TestDox('rejects negative span')] + #[TestDox('Rejects negative span')] public function testRejectsNegativeSpan(): void { $this->expectException(InvalidArgumentException::class); diff --git a/exercises/practice/linked-list/LinkedListTest.php b/exercises/practice/linked-list/LinkedListTest.php index 3a4e3347e..02c692d3a 100644 --- a/exercises/practice/linked-list/LinkedListTest.php +++ b/exercises/practice/linked-list/LinkedListTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: 7f7e3987-b954-41b8-8084-99beca08752c */ - #[TestDox('pop gets element from the list')] + #[TestDox('Pop gets element from the list')] public function testPopGetsElementFromTheList(): void { $list = new LinkedList(); @@ -27,7 +27,7 @@ public function testPopGetsElementFromTheList(): void /** * uuid: c3f67e5d-cfa2-4c3e-a18f-7ce999c3c885 */ - #[TestDox('push/pop respectively add/remove at the end of the list')] + #[TestDox('Push/pop respectively add/remove at the end of the list')] public function testPushPopRespectivelyAddRemoveAtTheEndOfTheList(): void { $list = new LinkedList(); @@ -42,7 +42,7 @@ public function testPushPopRespectivelyAddRemoveAtTheEndOfTheList(): void /** * uuid: 00ea24ce-4f5c-4432-abb4-cc6e85462657 */ - #[TestDox('shift gets an element from the list')] + #[TestDox('Shift gets an element from the list')] public function testShiftGetsAnElementFromTheList(): void { $list = new LinkedList(); @@ -55,7 +55,7 @@ public function testShiftGetsAnElementFromTheList(): void /** * uuid: 37962ee0-3324-4a29-b588-5a4c861e6564 */ - #[TestDox('shift gets first element from the list')] + #[TestDox('Shift gets first element from the list')] public function testShiftGetsFirstElementFromTheList(): void { $list = new LinkedList(); @@ -69,7 +69,7 @@ public function testShiftGetsFirstElementFromTheList(): void /** * uuid: 30a3586b-e9dc-43fb-9a73-2770cec2c718 */ - #[TestDox('unshift adds element at start of the list')] + #[TestDox('Unshift adds element at start of the list')] public function testUnshiftAddsElementAtStartOfTheList(): void { $list = new LinkedList(); @@ -85,7 +85,7 @@ public function testUnshiftAddsElementAtStartOfTheList(): void /** * uuid: 042f71e4-a8a7-4cf0-8953-7e4f3a21c42d */ - #[TestDox('pop, push, shift, and unshift can be used in any order')] + #[TestDox('Pop, push, shift, and unshift can be used in any order')] public function testPopPushShiftAndUnshiftCanBeUsedInAnyOrder(): void { $list = new LinkedList(); @@ -104,7 +104,7 @@ public function testPopPushShiftAndUnshiftCanBeUsedInAnyOrder(): void /** * uuid: 88f65c0c-4532-4093-8295-2384fb2f37df */ - #[TestDox('count an empty list')] + #[TestDox('Count an empty list')] public function testCountAnEmptyList(): void { $list = new LinkedList(); @@ -114,7 +114,7 @@ public function testCountAnEmptyList(): void /** * uuid: fc055689-5cbe-4cd9-b994-02e2abbb40a5 */ - #[TestDox('count a list with items')] + #[TestDox('Count a list with items')] public function testCountAListWithItems(): void { $list = new LinkedList(); @@ -127,7 +127,7 @@ public function testCountAListWithItems(): void /** * uuid: 8272cef5-130d-40ea-b7f6-5ffd0790d650 */ - #[TestDox('count is correct after mutation')] + #[TestDox('Count is correct after mutation')] public function testCountIsCorrectAfterMutation(): void { $list = new LinkedList(); @@ -148,7 +148,7 @@ public function testCountIsCorrectAfterMutation(): void /** * uuid: 229b8f7a-bd8a-4798-b64f-0dc0bb356d95 */ - #[TestDox("popping to empty doesn't break the list")] + #[TestDox("Popping to empty doesn't break the list")] public function testPoppingToEmptyDoesNotBreakTheList(): void { $list = new LinkedList(); @@ -168,7 +168,7 @@ public function testPoppingToEmptyDoesNotBreakTheList(): void /** * uuid: 4e1948b4-514e-424b-a3cf-a1ebbfa2d1ad */ - #[TestDox("shifting to empty doesn't break the list")] + #[TestDox("Shifting to empty doesn't break the list")] public function testShiftingToEmptyDoesNotBreakTheList(): void { $list = new LinkedList(); @@ -188,7 +188,7 @@ public function testShiftingToEmptyDoesNotBreakTheList(): void /** * uuid: e8f7c600-d597-4f79-949d-8ad8bae895a6 */ - #[TestDox("deletes the only element")] + #[TestDox("Deletes the only element")] public function testDeletesTheOnlyElement(): void { $list = new LinkedList(); @@ -202,7 +202,7 @@ public function testDeletesTheOnlyElement(): void /** * uuid: fd65e422-51f3-45c0-9fd0-c33da638f89b */ - #[TestDox('deletes the element with the specified value from the list')] + #[TestDox('Deletes the element with the specified value from the list')] public function testDeletesTheElementWithTheSpecifiedValueFromTheList(): void { $list = new LinkedList(); @@ -220,7 +220,7 @@ public function testDeletesTheElementWithTheSpecifiedValueFromTheList(): void /** * uuid: 59db191a-b17f-4ab7-9c5c-60711ec1d013 */ - #[TestDox('deletes the element with the specified value from the list, re-assigns tail')] + #[TestDox('Deletes the element with the specified value from the list, re-assigns tail')] public function testDeletesTheElementWithTheSpecifiedValueFromTheListReassignsTail(): void { $list = new LinkedList(); @@ -238,7 +238,7 @@ public function testDeletesTheElementWithTheSpecifiedValueFromTheListReassignsTa /** * uuid: 58242222-5d39-415b-951d-8128247f8993 */ - #[TestDox('deletes the element with the specified value from the list, re-assigns head')] + #[TestDox('Deletes the element with the specified value from the list, re-assigns head')] public function testDeletesTheElementWithTheSpecifiedValueFromTheListReassignsHead(): void { $list = new LinkedList(); @@ -256,7 +256,7 @@ public function testDeletesTheElementWithTheSpecifiedValueFromTheListReassignsHe /** * uuid: ee3729ee-3405-4bd2-9bad-de0d4aa5d647 */ - #[TestDox('deletes the first of two elements')] + #[TestDox('Deletes the first of two elements')] public function testDeletesTheFirstOfTwoElements(): void { $list = new LinkedList(); @@ -272,7 +272,7 @@ public function testDeletesTheFirstOfTwoElements(): void /** * uuid: 47e3b3b4-b82c-4c23-8c1a-ceb9b17cb9fb */ - #[TestDox('deletes the second of two elements')] + #[TestDox('Deletes the second of two elements')] public function testDeletesTheSecondOfTwoElements(): void { $list = new LinkedList(); @@ -288,7 +288,7 @@ public function testDeletesTheSecondOfTwoElements(): void /** * uuid: 7b420958-f285-4922-b8f9-10d9dcab5179 */ - #[TestDox('delete does not modify the list if the element is not found')] + #[TestDox('Delete does not modify the list if the element is not found')] public function testDeleteDoesNotModifyTheListIfTheElementIsNotFound(): void { $list = new LinkedList(); @@ -302,7 +302,7 @@ public function testDeleteDoesNotModifyTheListIfTheElementIsNotFound(): void /** * uuid: 7e04828f-6082-44e3-a059-201c63252a76 */ - #[TestDox('deletes only the first occurrence')] + #[TestDox('Deletes only the first occurrence')] public function testDeleteOnlyTheFirstOccurrence(): void { $list = new LinkedList(); diff --git a/exercises/practice/list-ops/ListOpsTest.php b/exercises/practice/list-ops/ListOpsTest.php index 87306e2fa..6e0e8979e 100644 --- a/exercises/practice/list-ops/ListOpsTest.php +++ b/exercises/practice/list-ops/ListOpsTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 485b9452-bf94-40f7-a3db-c3cf4850066a */ - #[TestDox('append entries to a list and return the new list -> empty lists')] + #[TestDox('Append entries to a list and return the new list -> Empty lists')] public function testAppendEmptyLists() { $listOps = new ListOps(); @@ -25,7 +25,7 @@ public function testAppendEmptyLists() /** * uuid 2c894696-b609-4569-b149-8672134d340a */ - #[TestDox('append entries to a list and return the new list -> list to empty list')] + #[TestDox('Append entries to a list and return the new list -> List to empty list')] public function testAppendNonEmptyListToEmptyList() { $listOps = new ListOps(); @@ -35,7 +35,7 @@ public function testAppendNonEmptyListToEmptyList() /** * uuid e842efed-3bf6-4295-b371-4d67a4fdf19c */ - #[TestDox('append entries to a list and return the new list -> empty list to list')] + #[TestDox('Append entries to a list and return the new list -> Empty list to list')] public function testAppendEmptyListToNonEmptyList() { $listOps = new ListOps(); @@ -45,7 +45,7 @@ public function testAppendEmptyListToNonEmptyList() /** * uuid 71dcf5eb-73ae-4a0e-b744-a52ee387922f */ - #[TestDox('append entries to a list and return the new list -> non-empty lists')] + #[TestDox('Append entries to a list and return the new list -> Non-empty lists')] public function testAppendNonEmptyLists() { $listOps = new ListOps(); @@ -55,7 +55,7 @@ public function testAppendNonEmptyLists() /** * uuid 28444355-201b-4af2-a2f6-5550227bde21 */ - #[TestDox('concatenate a list of lists -> empty list')] + #[TestDox('Concatenate a list of lists -> Empty list')] public function testConcatEmptyLists() { $listOps = new ListOps(); @@ -65,7 +65,7 @@ public function testConcatEmptyLists() /** * uuid 331451c1-9573-42a1-9869-2d06e3b389a9 */ - #[TestDox('concatenate a list of lists -> list of lists')] + #[TestDox('Concatenate a list of lists -> List of lists')] public function testConcatLists() { $listOps = new ListOps(); @@ -75,7 +75,7 @@ public function testConcatLists() /** * uuid d6ecd72c-197f-40c3-89a4-aa1f45827e09 */ - #[TestDox('concatenate a list of lists -> list of nested lists')] + #[TestDox('Concatenate a list of lists -> List of nested lists')] public function testConcatNestedLists() { $listOps = new ListOps(); @@ -85,7 +85,7 @@ public function testConcatNestedLists() /** * uuid 0524fba8-3e0f-4531-ad2b-f7a43da86a16 */ - #[TestDox('filter list returning only values that satisfy the filter function -> empty list')] + #[TestDox('Filter list returning only values that satisfy the filter function -> Empty list')] public function testFilterEmptyList() { $listOps = new ListOps(); @@ -98,7 +98,7 @@ public function testFilterEmptyList() /** * uuid 88494bd5-f520-4edb-8631-88e415b62d24 */ - #[TestDox('filter list returning only values that satisfy the filter function -> non empty list')] + #[TestDox('Filter list returning only values that satisfy the filter function -> Non empty list')] public function testFilterNonEmptyList() { $listOps = new ListOps(); @@ -111,7 +111,7 @@ public function testFilterNonEmptyList() /** * uuid 1cf0b92d-8d96-41d5-9c21-7b3c37cb6aad */ - #[TestDox('returns the length of a list -> empty list')] + #[TestDox('Returns the length of a list -> Empty list')] public function testLengthEmptyList() { $listOps = new ListOps(); @@ -121,7 +121,7 @@ public function testLengthEmptyList() /** * uuid d7b8d2d9-2d16-44c4-9a19-6e5f237cb71e */ - #[TestDox('returns the length of a list -> non-empty list')] + #[TestDox('Returns the length of a list -> Non-empty list')] public function testLengthNonEmptyList() { $listOps = new ListOps(); @@ -131,7 +131,7 @@ public function testLengthNonEmptyList() /** * uuid c0bc8962-30e2-4bec-9ae4-668b8ecd75aa */ - #[TestDox('returns a list of elements whose values equal the list value transformed by the mapping function -> empty list')] + #[TestDox('Returns a list of elements whose values equal the list value transformed by the mapping function -> Empty list')] public function testMapEmptyList() { $listOps = new ListOps(); @@ -144,7 +144,7 @@ public function testMapEmptyList() /** * uuid 11e71a95-e78b-4909-b8e4-60cdcaec0e91 */ - #[TestDox('returns a list of elements whose values equal the list value transformed by the mapping function -> non-empty list')] + #[TestDox('Returns a list of elements whose values equal the list value transformed by the mapping function -> Non-empty list')] public function testMapNonEmptyList() { $listOps = new ListOps(); @@ -157,7 +157,7 @@ public function testMapNonEmptyList() /** * uuid 36549237-f765-4a4c-bfd9-5d3a8f7b07d2 */ - #[TestDox('folds (reduces) the given list from the left with a function -> empty list')] + #[TestDox('Folds (reduces) the given list from the left with a function -> Empty list')] public function testFoldlEmptyList() { $listOps = new ListOps(); @@ -170,7 +170,7 @@ public function testFoldlEmptyList() /** * uuid 7a626a3c-03ec-42bc-9840-53f280e13067 */ - #[TestDox('folds (reduces) the given list from the left with a function -> direction independent function applied to non-empty list')] + #[TestDox('Folds (reduces) the given list from the left with a function -> Direction independent function applied to non-empty list')] public function testFoldlDirectionIndependentNonEmptyList() { $listOps = new ListOps(); @@ -183,7 +183,7 @@ public function testFoldlDirectionIndependentNonEmptyList() /** * uuid d7fcad99-e88e-40e1-a539-4c519681f390 */ - #[TestDox('folds (reduces) the given list from the left with a function -> direction dependent function applied to non-empty list')] + #[TestDox('Folds (reduces) the given list from the left with a function -> Direction dependent function applied to non-empty list')] public function testFoldlDirectionDependentNonEmptyList() { $listOps = new ListOps(); @@ -196,7 +196,7 @@ public function testFoldlDirectionDependentNonEmptyList() /** * uuid aeb576b9-118e-4a57-a451-db49fac20fdc */ - #[TestDox('folds (reduces) the given list from the right with a function -> empty list')] + #[TestDox('Folds (reduces) the given list from the right with a function -> Empty list')] public function testFoldrEmptyList() { $listOps = new ListOps(); @@ -209,7 +209,7 @@ public function testFoldrEmptyList() /** * uuid e1c64db7-9253-4a3d-a7c4-5273b9e2a1bd */ - #[TestDox('folds (reduces) the given list from the right with a function -> direction independent function applied to non-empty list')] + #[TestDox('Folds (reduces) the given list from the right with a function -> Direction independent function applied to non-empty list')] public function testFoldrDirectionIndependentNonEmptyList() { $listOps = new ListOps(); @@ -222,7 +222,7 @@ public function testFoldrDirectionIndependentNonEmptyList() /** * uuid 8066003b-f2ff-437e-9103-66e6df474844 */ - #[TestDox('folds (reduces) the given list from the right with a function -> direction dependent function applied to non-empty list')] + #[TestDox('Folds (reduces) the given list from the right with a function -> Direction dependent function applied to non-empty list')] public function testFoldrDirectionDependentNonEmptyList() { $listOps = new ListOps(); @@ -235,7 +235,7 @@ public function testFoldrDirectionDependentNonEmptyList() /** * uuid 94231515-050e-4841-943d-d4488ab4ee30 */ - #[TestDox('reverse the elements of a list -> empty list')] + #[TestDox('Reverse the elements of a list -> Empty list')] public function testReverseEmptyList() { $listOps = new ListOps(); @@ -245,7 +245,7 @@ public function testReverseEmptyList() /** * uuid fcc03d1e-42e0-4712-b689-d54ad761f360 */ - #[TestDox('reverse the elements of a list -> non-empty list')] + #[TestDox('Reverse the elements of a list -> Non-empty list')] public function testReverseNonEmptyList() { $listOps = new ListOps(); @@ -255,7 +255,7 @@ public function testReverseNonEmptyList() /** * uuid 40872990-b5b8-4cb8-9085-d91fc0d05d26 */ - #[TestDox('reverse the elements of a list -> list of lists is not flattened')] + #[TestDox('Reverse the elements of a list -> List of lists is not flattened')] public function testReverseNonEmptyListIsNotFlattened() { $listOps = new ListOps(); diff --git a/exercises/practice/luhn/LuhnTest.php b/exercises/practice/luhn/LuhnTest.php index 4bdb4440b..7385d88d7 100644 --- a/exercises/practice/luhn/LuhnTest.php +++ b/exercises/practice/luhn/LuhnTest.php @@ -177,7 +177,7 @@ public function testVeryLongInputIsValid(): void /** * uuid: 8a7c0e24-85ea-4154-9cf1-c2db90eabc08 */ - #[TestDox('valid luhn with an odd number of digits and non zero first digit')] + #[TestDox('Valid luhn with an odd number of digits and non zero first digit')] public function testValidLuhnWithAnOddNumberOfDigitsAndNonZeroFirstDigit(): void { $this->assertTrue(isValid("109")); @@ -186,7 +186,7 @@ public function testValidLuhnWithAnOddNumberOfDigitsAndNonZeroFirstDigit(): void /** * uuid: 39a06a5a-5bad-4e0f-b215-b042d46209b1 */ - #[TestDox("using ascii value for non-doubled non-digit isn't allowed")] + #[TestDox("Using ASCII value for non-doubled non-digit isn't allowed")] public function testUsingAsciiValueForNonDoubledNonDigitIsntAllowed(): void { $this->assertFalse(isValid("055b 444 285")); @@ -195,7 +195,7 @@ public function testUsingAsciiValueForNonDoubledNonDigitIsntAllowed(): void /** * uuid: f94cf191-a62f-4868-bc72-7253114aa157 */ - #[TestDox("using ascii value for doubled non-digit isn't allowed")] + #[TestDox("Using ASCII value for doubled non-digit isn't allowed")] public function testUsingAsciiValueForDoubledNonDigitIsntAllowed(): void { $this->assertFalse(isValid(":9")); @@ -204,7 +204,7 @@ public function testUsingAsciiValueForDoubledNonDigitIsntAllowed(): void /** * uuid: 8b72ad26-c8be-49a2-b99c-bcc3bf631b33 */ - #[TestDox("non-numeric, non-space char in the middle with a sum that's divisible by 10 isn't allowed")] + #[TestDox("Non-numeric, non-space char in the middle with a sum that's divisible by 10 isn't allowed")] public function testNonNumericNonSpaceCharInMiddleWithSumDivisibleBy10IsntAllowed(): void { $this->assertFalse(isValid("59%59")); diff --git a/exercises/practice/markdown/MarkdownTest.php b/exercises/practice/markdown/MarkdownTest.php index e9f33e675..62d70d7d8 100644 --- a/exercises/practice/markdown/MarkdownTest.php +++ b/exercises/practice/markdown/MarkdownTest.php @@ -13,7 +13,7 @@ public static function setUpBeforeClass(): void } /** uuid: e75c8103-a6b8-45d9-84ad-e68520545f6e */ - #[TestDox('parses normal text as a paragraph')] + #[TestDox('Parses normal text as a paragraph')] public function testParsingParagraph(): void { $this->assertEquals( @@ -23,7 +23,7 @@ public function testParsingParagraph(): void } /** uuid: 69a4165d-9bf8-4dd7-bfdc-536eaca80a6a */ - #[TestDox('parsing italics')] + #[TestDox('Parsing italics')] public function testParsingItalics(): void { $this->assertEquals( @@ -33,7 +33,7 @@ public function testParsingItalics(): void } /** uuid: ec345a1d-db20-4569-a81a-172fe0cad8a1 */ - #[TestDox('parsing bold text')] + #[TestDox('Parsing bold text')] public function testParsingBoldText(): void { $this->assertEquals( @@ -43,7 +43,7 @@ public function testParsingBoldText(): void } /** uuid: 51164ed4-5641-4909-8fab-fbaa9d37d5a8 */ - #[TestDox('mixed normal, italics and bold text')] + #[TestDox('Mixed normal, italics and bold text')] public function testMixedNormalItalicsAndBoldText(): void { $this->assertEquals( @@ -53,7 +53,7 @@ public function testMixedNormalItalicsAndBoldText(): void } /** uuid: ad85f60d-0edd-4c6a-a9b1-73e1c4790d15 */ - #[TestDox('with h1 header level')] + #[TestDox('With h1 header level')] public function testWithH1Headerlevel(): void { $this->assertEquals( @@ -63,7 +63,7 @@ public function testWithH1Headerlevel(): void } /** uuid: d0f7a31f-6935-44ac-8a9a-1e8ab16af77f */ - #[TestDox('with h2 header level')] + #[TestDox('With h2 header level')] public function testWithH2Headerlevel(): void { $this->assertEquals( @@ -73,7 +73,7 @@ public function testWithH2Headerlevel(): void } /** uuid: 9df3f500-0622-4696-81a7-d5babd9b5f49 */ - #[TestDox('with h3 header level')] + #[TestDox('With h3 header level')] public function testWithH3headerLevel(): void { $this->assertEquals( @@ -83,7 +83,7 @@ public function testWithH3headerLevel(): void } /** uuid: 50862777-a5e8-42e9-a3b8-4ba6fcd0ed03 */ - #[TestDox('with h4 header level')] + #[TestDox('With h4 header level')] public function testWithH4headerLevel(): void { $this->assertEquals( @@ -93,7 +93,7 @@ public function testWithH4headerLevel(): void } /** uuid: ee1c23ac-4c86-4f2a-8b9c-403548d4ab82 */ - #[TestDox('with h5 header level')] + #[TestDox('With h5 header level')] public function testWithH5headerLevel(): void { $this->assertEquals( @@ -103,7 +103,7 @@ public function testWithH5headerLevel(): void } /** uuid: 13b5f410-33f5-44f0-a6a7-cfd4ab74b5d5 */ - #[TestDox('with h6 header level')] + #[TestDox('With h6 header level')] public function testWithH6Headerlevel(): void { $this->assertEquals( @@ -113,7 +113,7 @@ public function testWithH6Headerlevel(): void } /** uuid: 81c0c4db-435e-4d77-860d-45afacdad810 */ - #[TestDox('h7 header level is a paragraph')] + #[TestDox('H7 header level is a paragraph')] public function testH7HeaderIsAParagraph(): void { $this->assertEquals( @@ -123,7 +123,7 @@ public function testH7HeaderIsAParagraph(): void } /** uuid: 25288a2b-8edc-45db-84cf-0b6c6ee034d6 */ - #[TestDox('unordered lists')] + #[TestDox('Unordered lists')] public function testUnorderedLists(): void { $this->assertEquals( @@ -143,7 +143,7 @@ public function testWithALittleBitOfEverything(): void } /** uuid: 0b3ed1ec-3991-4b8b-8518-5cb73d4a64fe */ - #[TestDox('with markdown symbols in the header text that should not be interpreted')] + #[TestDox('With markdown symbols in the header text that should not be interpreted')] public function testMarkdownSymbolInHeaderText(): void { $this->assertEquals( @@ -153,7 +153,7 @@ public function testMarkdownSymbolInHeaderText(): void } # /** uuid: 113a2e58-78de-4efa-90e9-20972224d759 */ - #[TestDox('with markdown symbols in the list item text that should not be interpreted')] + #[TestDox('With markdown symbols in the list item text that should not be interpreted')] public function testMarkdownSymbolInListItemText(): void { $this->assertEquals( @@ -162,7 +162,7 @@ public function testMarkdownSymbolInListItemText(): void ); } /** uuid: e65e46e2-17b7-4216-b3ac-f44a1b9bcdb4 */ - #[TestDox('with markdown symbols in the paragraph text that should not be interpreted')] + #[TestDox('With markdown symbols in the paragraph text that should not be interpreted')] public function testMarkdownSymbolInParagraph(): void { $this->assertEquals( @@ -172,7 +172,7 @@ public function testMarkdownSymbolInParagraph(): void } /** uuid: f0bbbbde-0f52-4c0c-99ec-be4c60126dd4 */ - #[TestDox('unordered lists close properly with preceding and following lines')] + #[TestDox('Unordered lists close properly with preceding and following lines')] public function testUnorderedListCloseProperlyWithPrecedingAndFollowingLines(): void { $this->assertEquals( diff --git a/exercises/practice/matrix/MatrixTest.php b/exercises/practice/matrix/MatrixTest.php index f1863745d..240f2f3e9 100644 --- a/exercises/practice/matrix/MatrixTest.php +++ b/exercises/practice/matrix/MatrixTest.php @@ -13,7 +13,7 @@ public static function setUpBeforeClass(): void } /** uuid: ca733dab-9d85-4065-9ef6-a880a951dafd */ - #[TestDox('extract row from one number matrix')] + #[TestDox('Extract row from one number matrix')] public function testExtractRowFromOneNumberMatrix(): void { $matrix = new Matrix("1"); @@ -22,7 +22,7 @@ public function testExtractRowFromOneNumberMatrix(): void } /** uuid: 5c93ec93-80e1-4268-9fc2-63bc7d23385c */ - #[TestDox('can extract row')] + #[TestDox('Can extract row')] public function testExtractRow(): void { $matrix = new Matrix("1 2\n3 4"); @@ -31,7 +31,7 @@ public function testExtractRow(): void } /** uuid: 2f1aad89-ad0f-4bd2-9919-99a8bff0305a */ - #[TestDox('extract row where numbers have different widths')] + #[TestDox('Extract row where numbers have different widths')] public function testExtractRowWhereNumbersHaveDifferentWidths(): void { $matrix = new Matrix("1, 2\n10 20"); @@ -40,7 +40,7 @@ public function testExtractRowWhereNumbersHaveDifferentWidths(): void } /** uuid: 68f7f6ba-57e2-4e87-82d0-ad09889b5204 */ - #[TestDox('can extract row from non-square matrix with no corresponding column')] + #[TestDox('Can extract row from non-square matrix with no corresponding column')] public function testExtractRowFromNonSquareMatrixWithNoMatchingColumn(): void { $matrix = new Matrix("1 2 3\n4 5 6\n7 8 9\n8 7 6"); @@ -49,7 +49,7 @@ public function testExtractRowFromNonSquareMatrixWithNoMatchingColumn(): void } /** uuid: e8c74391-c93b-4aed-8bfe-f3c9beb89ebb */ - #[TestDox('extract column from one number matrix')] + #[TestDox('Extract column from one number matrix')] public function testExtractColumnFromOneNumberMatrix(): void { $matrix = new Matrix("1"); @@ -58,7 +58,7 @@ public function testExtractColumnFromOneNumberMatrix(): void } /** uuid: 7136bdbd-b3dc-48c4-a10c-8230976d3727 */ - #[TestDox('can extract column')] + #[TestDox('Can extract column')] public function testExtractColumn(): void { $matrix = new Matrix("1 2 3\n4 5 6\n7 8 9"); @@ -67,7 +67,7 @@ public function testExtractColumn(): void } /** uuid: ad64f8d7-bba6-4182-8adf-0c14de3d0eca */ - #[TestDox('can extract column from non-square matrix with no corresponding row')] + #[TestDox('Can extract column from non-square matrix with no corresponding row')] public function testExtractColumnFromNonSquareMatrixWithNoMatchRow(): void { $matrix = new Matrix("1 2 3 4\n5 6 7 8\n9 8 7 6"); @@ -76,7 +76,7 @@ public function testExtractColumnFromNonSquareMatrixWithNoMatchRow(): void } /** uuid: 9eddfa5c-8474-440e-ae0a-f018c2a0dd89 */ - #[TestDox('extract column where numbers have different widths')] + #[TestDox('Extract column where numbers have different widths')] public function testExtractColumnWhenNumbersHaveDifferentWidths(): void { $matrix = new Matrix("89 1903 3\n18 3 1\n9 4 800"); diff --git a/exercises/practice/meetup/MeetupTest.php b/exercises/practice/meetup/MeetupTest.php index b90122355..0df07ae36 100644 --- a/exercises/practice/meetup/MeetupTest.php +++ b/exercises/practice/meetup/MeetupTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: d7f8eadd-d4fc-46ee-8a20-e97bd3fd01c8 */ - #[TestDox('when teenth Monday is the 13th, the first day of the teenth week')] + #[TestDox('When teenth Monday is the 13th, the first day of the teenth week')] public function testMonteenthOfMay2013(): void { $expected = new DateTimeImmutable("2013/5/13"); @@ -28,7 +28,7 @@ public function testMonteenthOfMay2013(): void /** * uuid: f78373d1-cd53-4a7f-9d37-e15bf8a456b4 */ - #[TestDox('when teenth Monday is the 19th, the last day of the teenth week')] + #[TestDox('When teenth Monday is the 19th, the last day of the teenth week')] public function testMonteenthOfAugust2013(): void { $expected = new DateTimeImmutable("2013/8/19"); @@ -41,7 +41,7 @@ public function testMonteenthOfAugust2013(): void /** * uuid: 8c78bea7-a116-425b-9c6b-c9898266d92a */ - #[TestDox('when teenth Monday is some day in the middle of the teenth week')] + #[TestDox('When teenth Monday is some day in the middle of the teenth week')] public function testMonteenthOfSeptember2013(): void { $expected = new DateTimeImmutable("2013/9/16"); @@ -54,7 +54,7 @@ public function testMonteenthOfSeptember2013(): void /** * uuid: cfef881b-9dc9-4d0b-8de4-82d0f39fc271 */ - #[TestDox('when teenth Tuesday is the 19th, the last day of the teenth week')] + #[TestDox('When teenth Tuesday is the 19th, the last day of the teenth week')] public function testTuesteenthOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/19"); @@ -67,7 +67,7 @@ public function testTuesteenthOfMarch2013(): void /** * uuid: 69048961-3b00-41f9-97ee-eb6d83a8e92b */ - #[TestDox('when teenth Tuesday is some day in the middle of the teenth week')] + #[TestDox('When teenth Tuesday is some day in the middle of the teenth week')] public function testTuesteenthOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/16"); @@ -80,7 +80,7 @@ public function testTuesteenthOfApril2013(): void /** * uuid: d30bade8-3622-466a-b7be-587414e0caa6 */ - #[TestDox('when teenth Tuesday is the 13th, the first day of the teenth week')] + #[TestDox('When teenth Tuesday is the 13th, the first day of the teenth week')] public function testTuesteenthOfAugust2013(): void { $expected = new DateTimeImmutable("2013/8/13"); @@ -93,7 +93,7 @@ public function testTuesteenthOfAugust2013(): void /** * uuid: 8db4b58b-92f3-4687-867b-82ee1a04f851 */ - #[TestDox('when teenth Wednesday is some day in the middle of the teenth week')] + #[TestDox('When teenth Wednesday is some day in the middle of the teenth week')] public function testWednesteenthOfJanuary2013(): void { $expected = new DateTimeImmutable("2013/1/16"); @@ -106,7 +106,7 @@ public function testWednesteenthOfJanuary2013(): void /** * uuid: 6c27a2a2-28f8-487f-ae81-35d08c4664f7 */ - #[TestDox('when teenth Wednesday is the 13th, the first day of the teenth week')] + #[TestDox('When teenth Wednesday is the 13th, the first day of the teenth week')] public function testWednesteenthOfFebruary2013(): void { $expected = new DateTimeImmutable("2013/2/13"); @@ -119,7 +119,7 @@ public function testWednesteenthOfFebruary2013(): void /** * uuid: 008a8674-1958-45b5-b8e6-c2c9960d973a */ - #[TestDox('when teenth Wednesday is the 19th, the last day of the teenth week')] + #[TestDox('When teenth Wednesday is the 19th, the last day of the teenth week')] public function testWednesteenthOfJune2013(): void { $expected = new DateTimeImmutable("2013/6/19"); @@ -132,7 +132,7 @@ public function testWednesteenthOfJune2013(): void /** * uuid: e4abd5e3-57cb-4091-8420-d97e955c0dbd */ - #[TestDox('when teenth Thursday is some day in the middle of the teenth week')] + #[TestDox('When teenth Thursday is some day in the middle of the teenth week')] public function testThursteenthOfMay2013(): void { $expected = new DateTimeImmutable("2013/5/16"); @@ -145,7 +145,7 @@ public function testThursteenthOfMay2013(): void /** * uuid: 85da0b0f-eace-4297-a6dd-63588d5055b4 */ - #[TestDox('when teenth Thursday is the 13th, the first day of the teenth week')] + #[TestDox('When teenth Thursday is the 13th, the first day of the teenth week')] public function testThursteenthOfJune2013(): void { $expected = new DateTimeImmutable("2013/6/13"); @@ -158,7 +158,7 @@ public function testThursteenthOfJune2013(): void /** * uuid: ecf64f9b-8413-489b-bf6e-128045f70bcc */ - #[TestDox('when teenth Thursday is the 19th, the last day of the teenth week')] + #[TestDox('When teenth Thursday is the 19th, the last day of the teenth week')] public function testThursteenthOfSeptember2013(): void { $expected = new DateTimeImmutable("2013/9/19"); @@ -171,7 +171,7 @@ public function testThursteenthOfSeptember2013(): void /** * uuid: ac4e180c-7d0a-4d3d-b05f-f564ebb584ca */ - #[TestDox('when teenth Friday is the 19th, the last day of the teenth week')] + #[TestDox('When teenth Friday is the 19th, the last day of the teenth week')] public function testFriteenthOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/19"); @@ -184,7 +184,7 @@ public function testFriteenthOfApril2013(): void /** * uuid: b79101c7-83ad-4f8f-8ec8-591683296315 */ - #[TestDox('when teenth Friday is some day in the middle of the teenth week')] + #[TestDox('When teenth Friday is some day in the middle of the teenth week')] public function testFriteenthOfAugust2013(): void { $expected = new DateTimeImmutable("2013/8/16"); @@ -197,7 +197,7 @@ public function testFriteenthOfAugust2013(): void /** * uuid: 6ed38b9f-0072-4901-bd97-7c8b8b0ef1b8 */ - #[TestDox('when teenth Friday is the 13th, the first day of the teenth week')] + #[TestDox('When teenth Friday is the 13th, the first day of the teenth week')] public function testFriteenthOfSeptember2013(): void { $expected = new DateTimeImmutable("2013/9/13"); @@ -210,7 +210,7 @@ public function testFriteenthOfSeptember2013(): void /** * uuid: dfae03ed-9610-47de-a632-655ab01e1e7c */ - #[TestDox('when teenth Saturday is some day in the middle of the teenth week')] + #[TestDox('When teenth Saturday is some day in the middle of the teenth week')] public function testSaturteenthOfFebruary2013(): void { $expected = new DateTimeImmutable("2013/2/16"); @@ -223,7 +223,7 @@ public function testSaturteenthOfFebruary2013(): void /** * uuid: ec02e3e1-fc72-4a3c-872f-a53fa8ab358e */ - #[TestDox('when teenth Saturday is the 13th, the first day of the teenth week')] + #[TestDox('When teenth Saturday is the 13th, the first day of the teenth week')] public function testSaturteenthOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/13"); @@ -236,7 +236,7 @@ public function testSaturteenthOfApril2013(): void /** * uuid: d983094b-7259-4195-b84e-5d09578c89d9 */ - #[TestDox('when teenth Saturday is the 19th, the last day of the teenth week')] + #[TestDox('When teenth Saturday is the 19th, the last day of the teenth week')] public function testSaturteenthOfOctober2013(): void { $expected = new DateTimeImmutable("2013/10/19"); @@ -249,7 +249,7 @@ public function testSaturteenthOfOctober2013(): void /** * uuid: d84a2a2e-f745-443a-9368-30051be60c2e */ - #[TestDox('when teenth Sunday is the 19th, the last day of the teenth week')] + #[TestDox('When teenth Sunday is the 19th, the last day of the teenth week')] public function testSunteenthOfMay2013(): void { $expected = new DateTimeImmutable("2013/5/19"); @@ -262,7 +262,7 @@ public function testSunteenthOfMay2013(): void /** * uuid: 0e64bc53-92a3-4f61-85b2-0b7168c7ce5a */ - #[TestDox('when teenth Sunday is some day in the middle of the teenth week')] + #[TestDox('When teenth Sunday is some day in the middle of the teenth week')] public function testSunteenthOfJune2013(): void { $expected = new DateTimeImmutable("2013/6/16"); @@ -275,7 +275,7 @@ public function testSunteenthOfJune2013(): void /** * uuid: de87652c-185e-4854-b3ae-04cf6150eead */ - #[TestDox('when teenth Sunday is the 13th, the first day of the teenth week')] + #[TestDox('When teenth Sunday is the 13th, the first day of the teenth week')] public function testSunteenthOfOctober2013(): void { $expected = new DateTimeImmutable("2013/10/13"); @@ -288,7 +288,7 @@ public function testSunteenthOfOctober2013(): void /** * uuid: 2cbfd0f5-ba3a-46da-a8cc-0fe4966d3411 */ - #[TestDox('when first Monday is some day in the middle of the first week')] + #[TestDox('When first Monday is some day in the middle of the first week')] public function testFirstMondayOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/4"); @@ -301,7 +301,7 @@ public function testFirstMondayOfMarch2013(): void /** * uuid: a6168c7c-ed95-4bb3-8f92-c72575fc64b0 */ - #[TestDox('when first Monday is the 1st, the first day of the first week')] + #[TestDox('When first Monday is the 1st, the first day of the first week')] public function testFirstMondayOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/1"); @@ -314,7 +314,7 @@ public function testFirstMondayOfApril2013(): void /** * uuid: 1bfc620f-1c54-4bbd-931f-4a1cd1036c20 */ - #[TestDox('when first Tuesday is the 7th, the last day of the first week')] + #[TestDox('When first Tuesday is the 7th, the last day of the first week')] public function testFirstTuesdayOfMay2013(): void { $expected = new DateTimeImmutable("2013/5/7"); @@ -327,7 +327,7 @@ public function testFirstTuesdayOfMay2013(): void /** * uuid: 12959c10-7362-4ca0-a048-50cf1c06e3e2 */ - #[TestDox('when first Tuesday is some day in the middle of the first week')] + #[TestDox('When first Tuesday is some day in the middle of the first week')] public function testFirstTuesdayOfJune2013(): void { $expected = new DateTimeImmutable("2013/6/4"); @@ -340,7 +340,7 @@ public function testFirstTuesdayOfJune2013(): void /** * uuid: 1033dc66-8d0b-48a1-90cb-270703d59d1d */ - #[TestDox('when first Wednesday is some day in the middle of the first week')] + #[TestDox('When first Wednesday is some day in the middle of the first week')] public function testFirstWednesdayOfJuly2013(): void { $expected = new DateTimeImmutable("2013/7/3"); @@ -353,7 +353,7 @@ public function testFirstWednesdayOfJuly2013(): void /** * uuid: b89185b9-2f32-46f4-a602-de20b09058f6 */ - #[TestDox('when first Wednesday is the 7th, the last day of the first week')] + #[TestDox('When first Wednesday is the 7th, the last day of the first week')] public function testFirstWednesdayOfAugust2013(): void { $expected = new DateTimeImmutable("2013/8/7"); @@ -366,7 +366,7 @@ public function testFirstWednesdayOfAugust2013(): void /** * uuid: 53aedc4d-b2c8-4dfb-abf7-a8dc9cdceed5 */ - #[TestDox('when first Thursday is some day in the middle of the first week')] + #[TestDox('When first Thursday is some day in the middle of the first week')] public function testFirstThursdayOfSeptember2013(): void { $expected = new DateTimeImmutable("2013/9/5"); @@ -379,7 +379,7 @@ public function testFirstThursdayOfSeptember2013(): void /** * uuid: b420a7e3-a94c-4226-870a-9eb3a92647f0 */ - #[TestDox('when first Thursday is another day in the middle of the first week')] + #[TestDox('When first Thursday is another day in the middle of the first week')] public function testFirstThursdayOfOctober2013(): void { $expected = new DateTimeImmutable("2013/10/3"); @@ -392,7 +392,7 @@ public function testFirstThursdayOfOctober2013(): void /** * uuid: 61df3270-28b4-4713-bee2-566fa27302ca */ - #[TestDox('when first Friday is the 1st, the first day of the first week')] + #[TestDox('When first Friday is the 1st, the first day of the first week')] public function testFirstFridayOfNovember2013(): void { $expected = new DateTimeImmutable("2013/11/1"); @@ -405,7 +405,7 @@ public function testFirstFridayOfNovember2013(): void /** * uuid: cad33d4d-595c-412f-85cf-3874c6e07abf */ - #[TestDox('when first Friday is some day in the middle of the first week')] + #[TestDox('When first Friday is some day in the middle of the first week')] public function testFirstFridayOfDecember2013(): void { $expected = new DateTimeImmutable("2013/12/6"); @@ -418,7 +418,7 @@ public function testFirstFridayOfDecember2013(): void /** * uuid: a2869b52-5bba-44f0-a863-07bd1f67eadb */ - #[TestDox('when first Saturday is some day in the middle of the first week')] + #[TestDox('When first Saturday is some day in the middle of the first week')] public function testFirstSaturdayOfJanuary2013(): void { $expected = new DateTimeImmutable("2013/1/5"); @@ -431,7 +431,7 @@ public function testFirstSaturdayOfJanuary2013(): void /** * uuid: 3585315a-d0db-4ea1-822e-0f22e2a645f5 */ - #[TestDox('when first Saturday is another day in the middle of the first week')] + #[TestDox('When first Saturday is another day in the middle of the first week')] public function testFirstSaturdayOfFebruary2013(): void { $expected = new DateTimeImmutable("2013/2/2"); @@ -444,7 +444,7 @@ public function testFirstSaturdayOfFebruary2013(): void /** * uuid: c49e9bd9-8ccf-4cf2-947a-0ccd4e4f10b1 */ - #[TestDox('when first Sunday is some day in the middle of the first week')] + #[TestDox('When first Sunday is some day in the middle of the first week')] public function testFirstSundayOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/3"); @@ -457,7 +457,7 @@ public function testFirstSundayOfMarch2013(): void /** * uuid: 1513328b-df53-4714-8677-df68c4f9366c */ - #[TestDox('when first Sunday is the 7th, the last day of the first week')] + #[TestDox('When first Sunday is the 7th, the last day of the first week')] public function testFirstSundayOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/7"); @@ -470,7 +470,7 @@ public function testFirstSundayOfApril2013(): void /** * uuid: 49e083af-47ec-4018-b807-62ef411efed7 */ - #[TestDox('when second Monday is some day in the middle of the second week')] + #[TestDox('When second Monday is some day in the middle of the second week')] public function testSecondMondayOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/11"); @@ -483,7 +483,7 @@ public function testSecondMondayOfMarch2013(): void /** * uuid: 6cb79a73-38fe-4475-9101-9eec36cf79e5 */ - #[TestDox('when second Monday is the 8th, the first day of the second week')] + #[TestDox('When second Monday is the 8th, the first day of the second week')] public function testSecondMondayOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/8"); @@ -496,7 +496,7 @@ public function testSecondMondayOfApril2013(): void /** * uuid: 4c39b594-af7e-4445-aa03-bf4f8effd9a1 */ - #[TestDox('when second Tuesday is the 14th, the last day of the second week')] + #[TestDox('When second Tuesday is the 14th, the last day of the second week')] public function testSecondTuesdayOfMay2013(): void { $expected = new DateTimeImmutable("2013/5/14"); @@ -509,7 +509,7 @@ public function testSecondTuesdayOfMay2013(): void /** * uuid: 41b32c34-2e39-40e3-b790-93539aaeb6dd */ - #[TestDox('when second Tuesday is some day in the middle of the second week')] + #[TestDox('When second Tuesday is some day in the middle of the second week')] public function testSecondTuesdayOfJune2013(): void { $expected = new DateTimeImmutable("2013/6/11"); @@ -522,7 +522,7 @@ public function testSecondTuesdayOfJune2013(): void /** * uuid: 90a160c5-b5d9-4831-927f-63a78b17843d */ - #[TestDox('when second Wednesday is some day in the middle of the second week')] + #[TestDox('When second Wednesday is some day in the middle of the second week')] public function testSecondWednesdayOfJuly2013(): void { $expected = new DateTimeImmutable("2013/7/10"); @@ -535,7 +535,7 @@ public function testSecondWednesdayOfJuly2013(): void /** * uuid: 23b98ce7-8dd5-41a1-9310-ef27209741cb */ - #[TestDox('when second Wednesday is the 14th, the last day of the second week')] + #[TestDox('When second Wednesday is the 14th, the last day of the second week')] public function testSecondWednesdayOfAugust2013(): void { $expected = new DateTimeImmutable("2013/8/14"); @@ -548,7 +548,7 @@ public function testSecondWednesdayOfAugust2013(): void /** * uuid: 447f1960-27ca-4729-bc3f-f36043f43ed0 */ - #[TestDox('when second Thursday is some day in the middle of the second week')] + #[TestDox('When second Thursday is some day in the middle of the second week')] public function testSecondThursdayOfSeptember2013(): void { $expected = new DateTimeImmutable("2013/9/12"); @@ -561,7 +561,7 @@ public function testSecondThursdayOfSeptember2013(): void /** * uuid: c9aa2687-300c-4e79-86ca-077849a81bde */ - #[TestDox('when second Thursday is another day in the middle of the second week')] + #[TestDox('When second Thursday is another day in the middle of the second week')] public function testSecondThursdayOfOctober2013(): void { $expected = new DateTimeImmutable("2013/10/10"); @@ -574,7 +574,7 @@ public function testSecondThursdayOfOctober2013(): void /** * uuid: a7e11ef3-6625-4134-acda-3e7195421c09 */ - #[TestDox('when second Friday is the 8th, the first day of the second week')] + #[TestDox('When second Friday is the 8th, the first day of the second week')] public function testSecondFridayOfNovember2013(): void { $expected = new DateTimeImmutable("2013/11/8"); @@ -587,7 +587,7 @@ public function testSecondFridayOfNovember2013(): void /** * uuid: 8b420e5f-9290-4106-b5ae-022f3e2a3e41 */ - #[TestDox('when second Friday is some day in the middle of the second week')] + #[TestDox('When second Friday is some day in the middle of the second week')] public function testSecondFridayOfDecember2013(): void { $expected = new DateTimeImmutable("2013/12/13"); @@ -600,7 +600,7 @@ public function testSecondFridayOfDecember2013(): void /** * uuid: 80631afc-fc11-4546-8b5f-c12aaeb72b4f */ - #[TestDox('when second Saturday is some day in the middle of the second week')] + #[TestDox('When second Saturday is some day in the middle of the second week')] public function testSecondSaturdayOfJanuary2013(): void { $expected = new DateTimeImmutable("2013/1/12"); @@ -613,7 +613,7 @@ public function testSecondSaturdayOfJanuary2013(): void /** * uuid: e34d43ac-f470-44c2-aa5f-e97b78ecaf83 */ - #[TestDox('when second Saturday is another day in the middle of the second week')] + #[TestDox('When second Saturday is another day in the middle of the second week')] public function testSecondSaturdayOfFebruary2013(): void { $expected = new DateTimeImmutable("2013/2/9"); @@ -626,7 +626,7 @@ public function testSecondSaturdayOfFebruary2013(): void /** * uuid: a57d59fd-1023-47ad-b0df-a6feb21b44fc */ - #[TestDox('when second Sunday is some day in the middle of the second week')] + #[TestDox('When second Sunday is some day in the middle of the second week')] public function testSecondSundayOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/10"); @@ -639,7 +639,7 @@ public function testSecondSundayOfMarch2013(): void /** * uuid: a829a8b0-abdd-4ad1-b66c-5560d843c91a */ - #[TestDox('when second Sunday is the 14th, the last day of the second week')] + #[TestDox('When second Sunday is the 14th, the last day of the second week')] public function testSecondSundayOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/14"); @@ -652,7 +652,7 @@ public function testSecondSundayOfApril2013(): void /** * uuid: 501a8a77-6038-4fc0-b74c-33634906c29d */ - #[TestDox('when third Monday is some day in the middle of the third week')] + #[TestDox('When third Monday is some day in the middle of the third week')] public function testThirdMondayOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/18"); @@ -665,7 +665,7 @@ public function testThirdMondayOfMarch2013(): void /** * uuid: 49e4516e-cf32-4a58-8bbc-494b7e851c92 */ - #[TestDox('when third Monday is the 15th, the first day of the third week')] + #[TestDox('When third Monday is the 15th, the first day of the third week')] public function testThirdMondayOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/15"); @@ -678,7 +678,7 @@ public function testThirdMondayOfApril2013(): void /** * uuid: 4db61095-f7c7-493c-85f1-9996ad3012c7 */ - #[TestDox('when third Tuesday is the 21st, the last day of the third week')] + #[TestDox('When third Tuesday is the 21st, the last day of the third week')] public function testThirdTuesdayOfMay2013(): void { $expected = new DateTimeImmutable("2013/5/21"); @@ -691,7 +691,7 @@ public function testThirdTuesdayOfMay2013(): void /** * uuid: 714fc2e3-58d0-4b91-90fd-61eefd2892c0 */ - #[TestDox('when third Tuesday is some day in the middle of the third week')] + #[TestDox('When third Tuesday is some day in the middle of the third week')] public function testThirdTuesdayOfJune2013(): void { $expected = new DateTimeImmutable("2013/6/18"); @@ -704,7 +704,7 @@ public function testThirdTuesdayOfJune2013(): void /** * uuid: b08a051a-2c80-445b-9b0e-524171a166d1 */ - #[TestDox('when third Wednesday is some day in the middle of the third week')] + #[TestDox('When third Wednesday is some day in the middle of the third week')] public function testThirdWednesdayOfJuly2013(): void { $expected = new DateTimeImmutable("2013/7/17"); @@ -717,7 +717,7 @@ public function testThirdWednesdayOfJuly2013(): void /** * uuid: 80bb9eff-3905-4c61-8dc9-bb03016d8ff8 */ - #[TestDox('when third Wednesday is the 21st, the last day of the third week')] + #[TestDox('When third Wednesday is the 21st, the last day of the third week')] public function testThirdWednesdayOfAugust2013(): void { $expected = new DateTimeImmutable("2013/8/21"); @@ -730,7 +730,7 @@ public function testThirdWednesdayOfAugust2013(): void /** * uuid: fa52a299-f77f-4784-b290-ba9189fbd9c9 */ - #[TestDox('when third Thursday is some day in the middle of the third week')] + #[TestDox('When third Thursday is some day in the middle of the third week')] public function testThirdThursdayOfSeptember2013(): void { $expected = new DateTimeImmutable("2013/9/19"); @@ -743,7 +743,7 @@ public function testThirdThursdayOfSeptember2013(): void /** * uuid: f74b1bc6-cc5c-4bf1-ba69-c554a969eb38 */ - #[TestDox('when third Thursday is another day in the middle of the third week')] + #[TestDox('When third Thursday is another day in the middle of the third week')] public function testThirdThursdayOfOctober2013(): void { $expected = new DateTimeImmutable("2013/10/17"); @@ -756,7 +756,7 @@ public function testThirdThursdayOfOctober2013(): void /** * uuid: 8900f3b0-801a-466b-a866-f42d64667abd */ - #[TestDox('when third Friday is the 15th, the first day of the third week')] + #[TestDox('When third Friday is the 15th, the first day of the third week')] public function testThirdFridayOfNovember2013(): void { $expected = new DateTimeImmutable("2013/11/15"); @@ -769,7 +769,7 @@ public function testThirdFridayOfNovember2013(): void /** * uuid: 538ac405-a091-4314-9ccd-920c4e38e85e */ - #[TestDox('when third Friday is some day in the middle of the third week')] + #[TestDox('When third Friday is some day in the middle of the third week')] public function testThirdFridayOfDecember2013(): void { $expected = new DateTimeImmutable("2013/12/20"); @@ -782,7 +782,7 @@ public function testThirdFridayOfDecember2013(): void /** * uuid: 244db35c-2716-4fa0-88ce-afd58e5cf910 */ - #[TestDox('when third Saturday is some day in the middle of the third week')] + #[TestDox('When third Saturday is some day in the middle of the third week')] public function testThirdSaturdayOfJanuary2013(): void { $expected = new DateTimeImmutable("2013/1/19"); @@ -795,7 +795,7 @@ public function testThirdSaturdayOfJanuary2013(): void /** * uuid: dd28544f-f8fa-4f06-9bcd-0ad46ce68e9e */ - #[TestDox('when third Saturday is another day in the middle of the third week')] + #[TestDox('When third Saturday is another day in the middle of the third week')] public function testThirdSaturdayOfFebruary2013(): void { $expected = new DateTimeImmutable("2013/2/16"); @@ -808,7 +808,7 @@ public function testThirdSaturdayOfFebruary2013(): void /** * uuid: be71dcc6-00d2-4b53-a369-cbfae55b312f */ - #[TestDox('when third Sunday is some day in the middle of the third week')] + #[TestDox('When third Sunday is some day in the middle of the third week')] public function testThirdSundayOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/17"); @@ -821,7 +821,7 @@ public function testThirdSundayOfMarch2013(): void /** * uuid: b7d2da84-4290-4ee6-a618-ee124ae78be7 */ - #[TestDox('when third Sunday is the 21st, the last day of the third week')] + #[TestDox('When third Sunday is the 21st, the last day of the third week')] public function testThirdSundayOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/21"); @@ -834,7 +834,7 @@ public function testThirdSundayOfApril2013(): void /** * uuid: 4276dc06-a1bd-4fc2-b6c2-625fee90bc88 */ - #[TestDox('when fourth Monday is some day in the middle of the fourth week')] + #[TestDox('When fourth Monday is some day in the middle of the fourth week')] public function testFourthMondayOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/25"); @@ -847,7 +847,7 @@ public function testFourthMondayOfMarch2013(): void /** * uuid: ddbd7976-2deb-4250-8a38-925ac1a8e9a2 */ - #[TestDox('when fourth Monday is the 22nd, the first day of the fourth week')] + #[TestDox('When fourth Monday is the 22nd, the first day of the fourth week')] public function testFourthMondayOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/22"); @@ -860,7 +860,7 @@ public function testFourthMondayOfApril2013(): void /** * uuid: eb714ef4-1656-47cc-913c-844dba4ebddd */ - #[TestDox('when fourth Tuesday is the 28th, the last day of the fourth week')] + #[TestDox('When fourth Tuesday is the 28th, the last day of the fourth week')] public function testFourthTuesdayOfMay2013(): void { $expected = new DateTimeImmutable("2013/5/28"); @@ -873,7 +873,7 @@ public function testFourthTuesdayOfMay2013(): void /** * uuid: 16648435-7937-4d2d-b118-c3e38fd084bd */ - #[TestDox('when fourth Tuesday is some day in the middle of the fourth week')] + #[TestDox('When fourth Tuesday is some day in the middle of the fourth week')] public function testFourthTuesdayOfJune2013(): void { $expected = new DateTimeImmutable("2013/6/25"); @@ -886,7 +886,7 @@ public function testFourthTuesdayOfJune2013(): void /** * uuid: de062bdc-9484-437a-a8c5-5253c6f6785a */ - #[TestDox('when fourth Wednesday is some day in the middle of the fourth week')] + #[TestDox('When fourth Wednesday is some day in the middle of the fourth week')] public function testFourthWednesdayOfJuly2013(): void { $expected = new DateTimeImmutable("2013/7/24"); @@ -899,7 +899,7 @@ public function testFourthWednesdayOfJuly2013(): void /** * uuid: c2ce6821-169c-4832-8d37-690ef5d9514a */ - #[TestDox('when fourth Wednesday is the 28th, the last day of the fourth week')] + #[TestDox('When fourth Wednesday is the 28th, the last day of the fourth week')] public function testFourthWednesdayOfAugust2013(): void { $expected = new DateTimeImmutable("2013/8/28"); @@ -912,7 +912,7 @@ public function testFourthWednesdayOfAugust2013(): void /** * uuid: d462c631-2894-4391-a8e3-dbb98b7a7303 */ - #[TestDox('when fourth Thursday is some day in the middle of the fourth week')] + #[TestDox('When fourth Thursday is some day in the middle of the fourth week')] public function testFourthThursdayOfSeptember2013(): void { $expected = new DateTimeImmutable("2013/9/26"); @@ -925,7 +925,7 @@ public function testFourthThursdayOfSeptember2013(): void /** * uuid: 9ff1f7b6-1b72-427d-9ee9-82b5bb08b835 */ - #[TestDox('when fourth Thursday is another day in the middle of the fourth week')] + #[TestDox('When fourth Thursday is another day in the middle of the fourth week')] public function testFourthThursdayOfOctober2013(): void { $expected = new DateTimeImmutable("2013/10/24"); @@ -938,7 +938,7 @@ public function testFourthThursdayOfOctober2013(): void /** * uuid: 83bae8ba-1c49-49bc-b632-b7c7e1d7e35f */ - #[TestDox('when fourth Friday is the 22nd, the first day of the fourth week')] + #[TestDox('When fourth Friday is the 22nd, the first day of the fourth week')] public function testFourthFridayOfNovember2013(): void { $expected = new DateTimeImmutable("2013/11/22"); @@ -951,7 +951,7 @@ public function testFourthFridayOfNovember2013(): void /** * uuid: de752d2a-a95e-48d2-835b-93363dac3710 */ - #[TestDox('when fourth Friday is some day in the middle of the fourth week')] + #[TestDox('When fourth Friday is some day in the middle of the fourth week')] public function testFourthFridayOfDecember2013(): void { $expected = new DateTimeImmutable("2013/12/27"); @@ -964,7 +964,7 @@ public function testFourthFridayOfDecember2013(): void /** * uuid: eedd90ad-d581-45db-8312-4c6dcf9cf560 */ - #[TestDox('when fourth Saturday is some day in the middle of the fourth week')] + #[TestDox('When fourth Saturday is some day in the middle of the fourth week')] public function testFourthSaturdayOfJanuary2013(): void { $expected = new DateTimeImmutable("2013/1/26"); @@ -977,7 +977,7 @@ public function testFourthSaturdayOfJanuary2013(): void /** * uuid: 669fedcd-912e-48c7-a0a1-228b34af91d0 */ - #[TestDox('when fourth Saturday is another day in the middle of the fourth week')] + #[TestDox('When fourth Saturday is another day in the middle of the fourth week')] public function testFourthSaturdayOfFebruary2013(): void { $expected = new DateTimeImmutable("2013/2/23"); @@ -990,7 +990,7 @@ public function testFourthSaturdayOfFebruary2013(): void /** * uuid: 648e3849-ea49-44a5-a8a3-9f2a43b3bf1b */ - #[TestDox('when fourth Sunday is some day in the middle of the fourth week')] + #[TestDox('When fourth Sunday is some day in the middle of the fourth week')] public function testFourthSundayOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/24"); @@ -1003,7 +1003,7 @@ public function testFourthSundayOfMarch2013(): void /** * uuid: f81321b3-99ab-4db6-9267-69c5da5a7823 */ - #[TestDox('when fourth Sunday is the 28th, the last day of the fourth week')] + #[TestDox('When fourth Sunday is the 28th, the last day of the fourth week')] public function testFourthSundayOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/28"); @@ -1016,7 +1016,7 @@ public function testFourthSundayOfApril2013(): void /** * uuid: 1af5e51f-5488-4548-aee8-11d7d4a730dc */ - #[TestDox('last Monday in a month with four Mondays')] + #[TestDox('Last Monday in a month with four Mondays')] public function testLastMondayOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/25"); @@ -1029,7 +1029,7 @@ public function testLastMondayOfMarch2013(): void /** * uuid: f29999f2-235e-4ec7-9dab-26f137146526 */ - #[TestDox('last Monday in a month with five Mondays')] + #[TestDox('Last Monday in a month with five Mondays')] public function testLastMondayOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/29"); @@ -1042,7 +1042,7 @@ public function testLastMondayOfApril2013(): void /** * uuid: 31b097a0-508e-48ac-bf8a-f63cdcf6dc41 */ - #[TestDox('last Tuesday in a month with four Tuesdays')] + #[TestDox('Last Tuesday in a month with four Tuesdays')] public function testLastTuesdayOfMay2013(): void { $expected = new DateTimeImmutable("2013/5/28"); @@ -1055,7 +1055,7 @@ public function testLastTuesdayOfMay2013(): void /** * uuid: 8c022150-0bb5-4a1f-80f9-88b2e2abcba4 */ - #[TestDox('last Tuesday in another month with four Tuesdays')] + #[TestDox('Last Tuesday in another month with four Tuesdays')] public function testLastTuesdayOfJune2013(): void { $expected = new DateTimeImmutable("2013/6/25"); @@ -1068,7 +1068,7 @@ public function testLastTuesdayOfJune2013(): void /** * uuid: 0e762194-672a-4bdf-8a37-1e59fdacef12 */ - #[TestDox('last Wednesday in a month with five Wednesdays')] + #[TestDox('Last Wednesday in a month with five Wednesdays')] public function testLastWednesdayOfJuly2013(): void { $expected = new DateTimeImmutable("2013/7/31"); @@ -1081,7 +1081,7 @@ public function testLastWednesdayOfJuly2013(): void /** * uuid: 5016386a-f24e-4bd7-b439-95358f491b66 */ - #[TestDox('last Wednesday in a month with four Wednesdays')] + #[TestDox('Last Wednesday in a month with four Wednesdays')] public function testLastWednesdayOfAugust2013(): void { $expected = new DateTimeImmutable("2013/8/28"); @@ -1094,7 +1094,7 @@ public function testLastWednesdayOfAugust2013(): void /** * uuid: 12ead1a5-cdf9-4192-9a56-2229e93dd149 */ - #[TestDox('last Thursday in a month with four Thursdays')] + #[TestDox('Last Thursday in a month with four Thursdays')] public function testLastThursdayOfSeptember2013(): void { $expected = new DateTimeImmutable("2013/9/26"); @@ -1107,7 +1107,7 @@ public function testLastThursdayOfSeptember2013(): void /** * uuid: 7db89e11-7fbe-4e57-ae3c-0f327fbd7cc7 */ - #[TestDox('last Thursday in a month with five Thursdays')] + #[TestDox('Last Thursday in a month with five Thursdays')] public function testLastThursdayOfOctober2013(): void { $expected = new DateTimeImmutable("2013/10/31"); @@ -1120,7 +1120,7 @@ public function testLastThursdayOfOctober2013(): void /** * uuid: e47a739e-b979-460d-9c8a-75c35ca2290b */ - #[TestDox('last Friday in a month with five Fridays')] + #[TestDox('Last Friday in a month with five Fridays')] public function testLastFridayOfNovember2013(): void { $expected = new DateTimeImmutable("2013/11/29"); @@ -1133,7 +1133,7 @@ public function testLastFridayOfNovember2013(): void /** * uuid: 5bed5aa9-a57a-4e5d-8997-2cc796a5b0ec */ - #[TestDox('last Friday in a month with four Fridays')] + #[TestDox('Last Friday in a month with four Fridays')] public function testLastFridayOfDecember2013(): void { $expected = new DateTimeImmutable("2013/12/27"); @@ -1146,7 +1146,7 @@ public function testLastFridayOfDecember2013(): void /** * uuid: 61e54cba-76f3-4772-a2b1-bf443fda2137 */ - #[TestDox('last Saturday in a month with four Saturdays')] + #[TestDox('Last Saturday in a month with four Saturdays')] public function testLastSaturdayOfJanuary2013(): void { $expected = new DateTimeImmutable("2013/1/26"); @@ -1159,7 +1159,7 @@ public function testLastSaturdayOfJanuary2013(): void /** * uuid: 8b6a737b-2fa9-444c-b1a2-80ce7a2ec72f */ - #[TestDox('last Saturday in another month with four Saturdays')] + #[TestDox('Last Saturday in another month with four Saturdays')] public function testLastSaturdayOfFebruary2013(): void { $expected = new DateTimeImmutable("2013/2/23"); @@ -1172,7 +1172,7 @@ public function testLastSaturdayOfFebruary2013(): void /** * uuid: 0b63e682-f429-4d19-9809-4a45bd0242dc */ - #[TestDox('last Sunday in a month with five Sundays')] + #[TestDox('Last Sunday in a month with five Sundays')] public function testLastSundayOfMarch2013(): void { $expected = new DateTimeImmutable("2013/3/31"); @@ -1185,7 +1185,7 @@ public function testLastSundayOfMarch2013(): void /** * uuid: 5232307e-d3e3-4afc-8ba6-4084ad987c00 */ - #[TestDox('last Sunday in a month with four Sundays')] + #[TestDox('Last Sunday in a month with four Sundays')] public function testLastSundayOfApril2013(): void { $expected = new DateTimeImmutable("2013/4/28"); @@ -1198,7 +1198,7 @@ public function testLastSundayOfApril2013(): void /** * uuid: 0bbd48e8-9773-4e81-8e71-b9a51711e3c5 */ - #[TestDox('last Wednesday in February in a leap year is the 29th')] + #[TestDox('Last Wednesday in February in a leap year is the 29th')] public function testLastWednesdayOfFebruary2012(): void { $expected = new DateTimeImmutable("2012/2/29"); @@ -1211,7 +1211,7 @@ public function testLastWednesdayOfFebruary2012(): void /** * uuid: fe0936de-7eee-4a48-88dd-66c07ab1fefc */ - #[TestDox('last Wednesday in December that is also the last day of the year')] + #[TestDox('Last Wednesday in December that is also the last day of the year')] public function testLastWednesdayOfDecember2014(): void { $expected = new DateTimeImmutable("2014/12/31"); @@ -1224,7 +1224,7 @@ public function testLastWednesdayOfDecember2014(): void /** * uuid: 2ccf2488-aafc-4671-a24e-2b6effe1b0e2 */ - #[TestDox('last Sunday in February in a non-leap year is not the 29th')] + #[TestDox('Last Sunday in February in a non-leap year is not the 29th')] public function testLastSundayOfFebruary2015(): void { $expected = new DateTimeImmutable("2015/2/22"); @@ -1237,7 +1237,7 @@ public function testLastSundayOfFebruary2015(): void /** * uuid: 00c3ce9f-cf36-4b70-90d8-92b32be6830e */ - #[TestDox('when first Friday is the 7th, the last day of the first week')] + #[TestDox('When first Friday is the 7th, the last day of the first week')] public function testFirstFridayOfDecember2012(): void { $expected = new DateTimeImmutable("2012/12/7"); diff --git a/exercises/practice/nth-prime/NthPrimeTest.php b/exercises/practice/nth-prime/NthPrimeTest.php index f86993a48..bca7f6d35 100644 --- a/exercises/practice/nth-prime/NthPrimeTest.php +++ b/exercises/practice/nth-prime/NthPrimeTest.php @@ -13,35 +13,35 @@ public static function setUpBeforeClass(): void } /** uuid: 75c65189-8aef-471a-81de-0a90c728160c */ - #[TestDox('first prime')] + #[TestDox('First prime')] public function testFirstPrime(): void { $this->assertEquals(2, prime(1)); } /** uuid: 2c38804c-295f-4701-b728-56dea34fd1a0 */ - #[TestDox('second prime')] + #[TestDox('Second prime')] public function testSecondPrime(): void { $this->assertEquals(3, prime(2)); } /** uuid: 56692534-781e-4e8c-b1f9-3e82c1640259 */ - #[TestDox('sixth prime')] + #[TestDox('Sixth prime')] public function testSixthPrime(): void { $this->assertEquals(13, prime(6)); } /** uuid: fce1e979-0edb-412d-93aa-2c744e8f50ff */ - #[TestDox('big prime')] + #[TestDox('Big prime')] public function testBigPrime(): void { $this->assertEquals(104743, prime(10001)); } /** uuid: bd0a9eae-6df7-485b-a144-80e13c7d55b2 */ - #[TestDox('there is no zeroth prime')] + #[TestDox('There is no zeroth prime')] public function testZeroPrime(): void { $this->expectException(Exception::class); diff --git a/exercises/practice/palindrome-products/PalindromeProductsTest.php b/exercises/practice/palindrome-products/PalindromeProductsTest.php index e46e62446..2e6fed876 100644 --- a/exercises/practice/palindrome-products/PalindromeProductsTest.php +++ b/exercises/practice/palindrome-products/PalindromeProductsTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: 5cff78fe-cf02-459d-85c2-ce584679f887 */ - #[TestDox('find the smallest palindrome from single digit factors')] + #[TestDox('Find the smallest palindrome from single digit factors')] public function testFindsTheSmallestPalindromeFromSingleDigitFactors(): void { [$value, $factors] = smallest(1, 9); @@ -28,7 +28,7 @@ public function testFindsTheSmallestPalindromeFromSingleDigitFactors(): void /** * uuid: 0853f82c-5fc4-44ae-be38-fadb2cced92d */ - #[TestDox('find the largest palindrome from single digit factors')] + #[TestDox('Find the largest palindrome from single digit factors')] public function testFindsTheLargestPalindromeFromSingleDigitFactors(): void { [$value, $factors] = largest(1, 9); @@ -42,7 +42,7 @@ public function testFindsTheLargestPalindromeFromSingleDigitFactors(): void /** * uuid: 66c3b496-bdec-4103-9129-3fcb5a9063e1 */ - #[TestDox('find the smallest palindrome from double digit factors')] + #[TestDox('Find the smallest palindrome from double digit factors')] public function testFindTheSmallestPalindromeFromDoubleDigitFactors(): void { [$value, $factors] = smallest(10, 99); @@ -55,7 +55,7 @@ public function testFindTheSmallestPalindromeFromDoubleDigitFactors(): void /** * uuid: a10682ae-530a-4e56-b89d-69664feafe53 */ - #[TestDox('find the largest palindrome from double digit factors')] + #[TestDox('Find the largest palindrome from double digit factors')] public function testFindTheLargestPalindromeFromDoubleDigitFactors(): void { [$value, $factors] = largest(10, 99); @@ -68,7 +68,7 @@ public function testFindTheLargestPalindromeFromDoubleDigitFactors(): void /** * uuid: cecb5a35-46d1-4666-9719-fa2c3af7499d */ - #[TestDox('find the smallest palindrome from triple digit factors')] + #[TestDox('Find the smallest palindrome from triple digit factors')] public function testFindSmallestPalindromeFromTripleDigitFactors(): void { [$value, $factors] = smallest(100, 999); @@ -81,7 +81,7 @@ public function testFindSmallestPalindromeFromTripleDigitFactors(): void /** * uuid: edab43e1-c35f-4ea3-8c55-2f31dddd92e5 */ - #[TestDox('find the largest palindrome from triple digit factors')] + #[TestDox('Find the largest palindrome from triple digit factors')] public function testFindTheLargestPalindromeFromTripleDigitFactors(): void { [$value, $factors] = largest(100, 999); @@ -94,7 +94,7 @@ public function testFindTheLargestPalindromeFromTripleDigitFactors(): void /** * uuid: 4f802b5a-9d74-4026-a70f-b53ff9234e4e */ - #[TestDox('find the smallest palindrome from four digit factors')] + #[TestDox('Find the smallest palindrome from four digit factors')] public function testFindSmallestPalindromeFromFourDigitFactors(): void { [$value, $factors] = smallest(1000, 9999); @@ -107,7 +107,7 @@ public function testFindSmallestPalindromeFromFourDigitFactors(): void /** * uuid: 787525e0-a5f9-40f3-8cb2-23b52cf5d0be */ - #[TestDox('find the largest palindrome from four digit factors')] + #[TestDox('Find the largest palindrome from four digit factors')] public function testFindTheLargestPalindromeFromFourDigitFactors(): void { [$value, $factors] = largest(1000, 9999); @@ -120,7 +120,7 @@ public function testFindTheLargestPalindromeFromFourDigitFactors(): void /** * uuid: 58fb1d63-fddb-4409-ab84-a7a8e58d9ea0 */ - #[TestDox('empty result for smallest if no palindrome in the range')] + #[TestDox('Empty result for smallest if no palindrome in the range')] public function testEmptyResultForSmallestIfNoPalindromeInTheRange(): void { $this->expectException(Exception::class); @@ -131,7 +131,7 @@ public function testEmptyResultForSmallestIfNoPalindromeInTheRange(): void /** * uuid: 9de9e9da-f1d9-49a5-8bfc-3d322efbdd02 */ - #[TestDox('empty result for largest if no palindrome in the range')] + #[TestDox('Empty result for largest if no palindrome in the range')] public function testEmptyResultForLargestIfNoPalindromeInTheRange(): void { $this->expectException(Exception::class); @@ -142,7 +142,7 @@ public function testEmptyResultForLargestIfNoPalindromeInTheRange(): void /** * uuid: 12e73aac-d7ee-4877-b8aa-2aa3dcdb9f8a */ - #[TestDox('error result for smallest if min is more than max')] + #[TestDox('Error result for smallest if min is more than max')] public function testErrorResultForSmallestIfMinIsMoreThanMax(): void { $this->expectException(Exception::class); @@ -153,7 +153,7 @@ public function testErrorResultForSmallestIfMinIsMoreThanMax(): void /** * uuid: eeeb5bff-3f47-4b1e-892f-05829277bd74 */ - #[TestDox('error result for largest if min is more than max')] + #[TestDox('Error result for largest if min is more than max')] public function testErrorResultForLargestIfMinIsMoreThanMax(): void { $this->expectException(Exception::class); @@ -163,7 +163,7 @@ public function testErrorResultForLargestIfMinIsMoreThanMax(): void /** * uuid: 16481711-26c4-42e0-9180-e2e4e8b29c23 */ - #[TestDox('smallest product does not use the smallest factor')] + #[TestDox('Smallest product does not use the smallest factor')] public function testSmallestProductDoesNotUseTheSmallestFactor(): void { [$value, $factors] = smallest(3215, 4000); diff --git a/exercises/practice/phone-number/PhoneNumberTest.php b/exercises/practice/phone-number/PhoneNumberTest.php index f4b6f6fe3..f3f46c899 100644 --- a/exercises/practice/phone-number/PhoneNumberTest.php +++ b/exercises/practice/phone-number/PhoneNumberTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 79666dce-e0f1-46de-95a1-563802913c35 */ - #[TestDox('cleans the number')] + #[TestDox('Cleans the number')] public function testCleansTheNumber(): void { $number = new PhoneNumber('(223) 456-7890'); @@ -25,7 +25,7 @@ public function testCleansTheNumber(): void /** * uuid c360451f-549f-43e4-8aba-fdf6cb0bf83f */ - #[TestDox('cleans numbers with dots')] + #[TestDox('Cleans numbers with dots')] public function testCleansTheNumberWithDots(): void { $number = new PhoneNumber('223.456.7890'); @@ -35,7 +35,7 @@ public function testCleansTheNumberWithDots(): void /** * uuid 08f94c34-9a37-46a2-a123-2a8e9727395d */ - #[TestDox('cleans numbers with multiple spaces')] + #[TestDox('Cleans numbers with multiple spaces')] public function testCleansTheNumberWithMultipleSpaces(): void { $number = new PhoneNumber('223 456 7890 '); @@ -45,7 +45,7 @@ public function testCleansTheNumberWithMultipleSpaces(): void /** * uuid 2de74156-f646-42b5-8638-0ef1d8b58bc2 */ - #[TestDox('invalid when 9 digits')] + #[TestDox('Invalid when 9 digits')] public function testInvalidWhen9Digits(): void { $this->expectException(InvalidArgumentException::class); @@ -56,7 +56,7 @@ public function testInvalidWhen9Digits(): void /** * uuid 57061c72-07b5-431f-9766-d97da7c4399d */ - #[TestDox('invalid when 11 digits does not start with a 1')] + #[TestDox('Invalid when 11 digits does not start with a 1')] public function testInvalidWhen11DigitsDoesNotStartWithA1(): void { $this->expectException(InvalidArgumentException::class); @@ -68,7 +68,7 @@ public function testInvalidWhen11DigitsDoesNotStartWithA1(): void /** * uuid 9962cbf3-97bb-4118-ba9b-38ff49c64430 */ - #[TestDox('valid when 11 digits and starting with 1')] + #[TestDox('Valid when 11 digits and starting with 1')] public function testValidWhen11DigitsAndStartingWith1(): void { $number = new PhoneNumber('12234567890'); @@ -78,7 +78,7 @@ public function testValidWhen11DigitsAndStartingWith1(): void /** * uuid fa724fbf-054c-4d91-95da-f65ab5b6dbca */ - #[TestDox('valid when 11 digits and starting with 1 even with punctuation')] + #[TestDox('Valid when 11 digits and starting with 1 even with punctuation')] public function testValidWhen11DigitsAndStartingWith1EvenWithPunctuation(): void { $number = new PhoneNumber('+1 (223) 456-7890'); @@ -88,7 +88,7 @@ public function testValidWhen11DigitsAndStartingWith1EvenWithPunctuation(): void /** * uuid 4a1509b7-8953-4eec-981b-c483358ff531 */ - #[TestDox('invalid when more than 11 digits')] + #[TestDox('Invalid when more than 11 digits')] public function testInvalidWhenMoreThan11Digits(): void { $this->expectException(InvalidArgumentException::class); @@ -99,7 +99,7 @@ public function testInvalidWhenMoreThan11Digits(): void /** * uuid eb8a1fc0-64e5-46d3-b0c6-33184208e28a */ - #[TestDox('invalid with letters')] + #[TestDox('Invalid with letters')] public function testInvalidWithLetters(): void { $this->expectException(InvalidArgumentException::class); @@ -111,7 +111,7 @@ public function testInvalidWithLetters(): void /** * uuid 065f6363-8394-4759-b080-e6c8c351dd1f */ - #[TestDox('invalid with punctuations')] + #[TestDox('Invalid with punctuations')] public function testInvalidWithPunctuation(): void { $this->expectException(InvalidArgumentException::class); @@ -123,7 +123,7 @@ public function testInvalidWithPunctuation(): void /** * uuid d77d07f8-873c-4b17-8978-5f66139bf7d7 */ - #[TestDox('invalid if area code starts with 0')] + #[TestDox('Invalid if area code starts with 0')] public function testInvalidIfAreaCodeStartsWith0(): void { $this->expectException(InvalidArgumentException::class); @@ -135,7 +135,7 @@ public function testInvalidIfAreaCodeStartsWith0(): void /** * uuid c7485cfb-1e7b-4081-8e96-8cdb3b77f15e */ - #[TestDox('invalid if area code starts with 1')] + #[TestDox('Invalid if area code starts with 1')] public function testInvalidIfAreaCodeStartsWith1(): void { $this->expectException(InvalidArgumentException::class); @@ -147,7 +147,7 @@ public function testInvalidIfAreaCodeStartsWith1(): void /** * uuid 4d622293-6976-413d-b8bf-dd8a94d4e2ac */ - #[TestDox('invalid if exchange code starts with 0')] + #[TestDox('Invalid if exchange code starts with 0')] public function testInvalidIfExchangeCodeStartsWith0(): void { $this->expectException(InvalidArgumentException::class); @@ -159,7 +159,7 @@ public function testInvalidIfExchangeCodeStartsWith0(): void /** * uuid 4cef57b4-7d8e-43aa-8328-1e1b89001262 */ - #[TestDox('invalid if exchange code starts with 1')] + #[TestDox('Invalid if exchange code starts with 1')] public function testInvalidIfExchangeCodeStartsWith1(): void { $this->expectException(InvalidArgumentException::class); @@ -171,7 +171,7 @@ public function testInvalidIfExchangeCodeStartsWith1(): void /** * uuid 9925b09c-1a0d-4960-a197-5d163cbe308c */ - #[TestDox('invalid if area code starts with 0 on valid 11-digit number')] + #[TestDox('Invalid if area code starts with 0 on valid 11-digit number')] public function testInvalidIfAreaCodeStartsWith0OnValid11DigitNumber(): void { $this->expectException(InvalidArgumentException::class); @@ -183,7 +183,7 @@ public function testInvalidIfAreaCodeStartsWith0OnValid11DigitNumber(): void /** * uuid 3f809d37-40f3-44b5-ad90-535838b1a816 */ - #[TestDox('invalid if area code starts with 1 on valid 11-digit number')] + #[TestDox('Invalid if area code starts with 1 on valid 11-digit number')] public function testInvalidIfAreaCodeStartsWith1OnValid11DigitNumber(): void { $this->expectException(InvalidArgumentException::class); @@ -195,7 +195,7 @@ public function testInvalidIfAreaCodeStartsWith1OnValid11DigitNumber(): void /** * uuid e08e5532-d621-40d4-b0cc-96c159276b65 */ - #[TestDox('invalid if exchange code starts with 0 on valid 11-digit number')] + #[TestDox('Invalid if exchange code starts with 0 on valid 11-digit number')] public function testInvalidIfExchangeCodeStartsWith0OnValid11DigitNumber(): void { $this->expectException(InvalidArgumentException::class); @@ -207,7 +207,7 @@ public function testInvalidIfExchangeCodeStartsWith0OnValid11DigitNumber(): void /** * uuid 57b32f3d-696a-455c-8bf1-137b6d171cdf */ - #[TestDox('invalid if exchange code starts with 1 on valid 11-digit number')] + #[TestDox('Invalid if exchange code starts with 1 on valid 11-digit number')] public function testInvalidIfExchangeCodeStartsWith1OnValid11DigitNumber(): void { $this->expectException(InvalidArgumentException::class); diff --git a/exercises/practice/pig-latin/PigLatinTest.php b/exercises/practice/pig-latin/PigLatinTest.php index 70afcb45f..1887b3a24 100644 --- a/exercises/practice/pig-latin/PigLatinTest.php +++ b/exercises/practice/pig-latin/PigLatinTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 11567f84-e8c6-4918-aedb-435f0b73db57 */ - #[TestDox('ay is added to words that start with vowels -> word beginning with a')] + #[TestDox("'ay' is added to words that start with vowels -> Word beginning with 'a'")] public function testWordBeginningWithA(): void { $this->assertEquals("appleay", translate("apple")); @@ -24,7 +24,7 @@ public function testWordBeginningWithA(): void /** * uuid f623f581-bc59-4f45-9032-90c3ca9d2d90 */ - #[TestDox('ay is added to words that start with vowels -> word beginning with e')] + #[TestDox("'ay' is added to words that start with vowels -> Word beginning with 'e'")] public function testWordBeginningWithE(): void { $this->assertEquals("earay", translate("ear")); @@ -33,7 +33,7 @@ public function testWordBeginningWithE(): void /** * uuid 7dcb08b3-23a6-4e8a-b9aa-d4e859450d58 */ - #[TestDox('ay is added to words that start with vowels -> word beginning with i')] + #[TestDox("'ay' is added to words that start with vowels -> Word beginning with 'i'")] public function testWordBeginningWithI(): void { $this->assertEquals("iglooay", translate("igloo")); @@ -42,7 +42,7 @@ public function testWordBeginningWithI(): void /** * uuid 0e5c3bff-266d-41c8-909f-364e4d16e09c */ - #[TestDox('ay is added to words that start with vowels -> word beginning with o')] + #[TestDox("'ay' is added to words that start with vowels -> Word beginning with 'o'")] public function testWordBeginningWithO(): void { $this->assertEquals("objectay", translate("object")); @@ -51,7 +51,7 @@ public function testWordBeginningWithO(): void /** * uuid 614ba363-ca3c-4e96-ab09-c7320799723c */ - #[TestDox('ay is added to words that start with vowels -> word beginning with u')] + #[TestDox("'ay' is added to words that start with vowels -> Word beginning with 'u'")] public function testWordBeginningWithU(): void { $this->assertEquals("underay", translate("under")); @@ -60,7 +60,7 @@ public function testWordBeginningWithU(): void /** * uuid bf2538c6-69eb-4fa7-a494-5a3fec911326 */ - #[TestDox('ay is added to words that start with vowels -> word beginning with a vowel and followed by a qu')] + #[TestDox("'ay' is added to words that start with vowels -> Word beginning with a vowel and followed by a 'qu'")] public function testWordBeginningVowelFollowedByQu(): void { $this->assertEquals("equalay", translate("equal")); @@ -69,7 +69,7 @@ public function testWordBeginningVowelFollowedByQu(): void /** * uuid e5be8a01-2d8a-45eb-abb4-3fcc9582a303 */ - #[TestDox('First letter and ay are moved to the end of words that start with consonants -> word beginning with p')] + #[TestDox("First letter and 'ay' are moved to the end of words that start with consonants -> Word beginning with 'p'")] public function testWordBeginningWithP(): void { $this->assertEquals("igpay", translate("pig")); @@ -78,7 +78,7 @@ public function testWordBeginningWithP(): void /** * uuid d36d1e13-a7ed-464d-a282-8820cb2261ce */ - #[TestDox('First letter and ay are moved to the end of words that start with consonants -> word beginning with k')] + #[TestDox("First letter and 'ay' are moved to the end of words that start with consonants -> Word beginning with 'k'")] public function testWordBeginningWithK(): void { $this->assertEquals("oalakay", translate("koala")); @@ -87,7 +87,7 @@ public function testWordBeginningWithK(): void /** * uuid d838b56f-0a89-4c90-b326-f16ff4e1dddc */ - #[TestDox('First letter and ay are moved to the end of words that start with consonants -> word beginning with x')] + #[TestDox("First letter and 'ay' are moved to the end of words that start with consonants -> Word beginning with 'x'")] public function testWordBeginningWithX(): void { $this->assertEquals("enonxay", translate("xenon")); @@ -96,7 +96,7 @@ public function testWordBeginningWithX(): void /** * uuid bce94a7a-a94e-4e2b-80f4-b2bb02e40f71 */ - #[TestDox('First letter and ay are moved to the end of words that start with consonants -> word beginning with q without a following u')] + #[TestDox("First letter and 'ay' are moved to the end of words that start with consonants -> Word beginning with 'q' without a following 'u'")] public function testWordBeginningWithQWithoutAFollowingU(): void { $this->assertEquals("atqay", translate("qat")); @@ -105,7 +105,7 @@ public function testWordBeginningWithQWithoutAFollowingU(): void /** * uuid e59dbbe8-ccee-4619-a8e9-ce017489bfc0 */ - #[TestDox('First letter and ay are moved to the end of words that start with consonants -> word beginning with consonant and vowel containing qu')] + #[TestDox("First letter and 'ay' are moved to the end of words that start with consonants -> Word beginning with consonant and vowel containing 'qu'")] public function testWordBeginningWithConsonantAndVowelContainingQu(): void { $this->assertEquals("iquidlay", translate("liquid")); @@ -114,7 +114,7 @@ public function testWordBeginningWithConsonantAndVowelContainingQu(): void /** * uuid c01e049a-e3e2-451c-bf8e-e2abb7e438b8 */ - #[TestDox('Some letter clusters are treated like a single consonant -> word beginning with ch')] + #[TestDox("Some letter clusters are treated like a single consonant -> Word beginning with 'ch'")] public function testWordBeginningWithCh(): void { $this->assertEquals("airchay", translate("chair")); @@ -123,7 +123,7 @@ public function testWordBeginningWithCh(): void /** * uuid 9ba1669e-c43f-4b93-837a-cfc731fd1425 */ - #[TestDox('Some letter clusters are treated like a single consonant -> word beginning with qu')] + #[TestDox("Some letter clusters are treated like a single consonant -> Word beginning with 'qu'")] public function testWordBeginningWithQu(): void { $this->assertEquals("eenquay", translate("queen")); @@ -132,7 +132,7 @@ public function testWordBeginningWithQu(): void /** * uuid 92e82277-d5e4-43d7-8dd3-3a3b316c41f7 */ - #[TestDox('Some letter clusters are treated like a single consonant -> word beginning with qu and a preceding consonant')] + #[TestDox("Some letter clusters are treated like a single consonant -> Word beginning with 'qu' and a preceding consonant")] public function testWordBeginningWithQuAndAPrecedingConsonant(): void { $this->assertEquals("aresquay", translate("square")); @@ -141,7 +141,7 @@ public function testWordBeginningWithQuAndAPrecedingConsonant(): void /** * uuid 79ae4248-3499-4d5b-af46-5cb05fa073ac */ - #[TestDox('Some letter clusters are treated like a single consonant -> word beginning with th')] + #[TestDox("Some letter clusters are treated like a single consonant -> Word beginning with 'th'")] public function testWordBeginningWithTh(): void { $this->assertEquals("erapythay", translate("therapy")); @@ -150,7 +150,7 @@ public function testWordBeginningWithTh(): void /** * uuid e0b3ae65-f508-4de3-8999-19c2f8e243e1 */ - #[TestDox('Some letter clusters are treated like a single consonant -> word beginning with thr')] + #[TestDox("Some letter clusters are treated like a single consonant -> Word beginning with 'thr'")] public function testWordBeginningWithThr(): void { $this->assertEquals("ushthray", translate("thrush")); @@ -159,7 +159,7 @@ public function testWordBeginningWithThr(): void /** * uuid 20bc19f9-5a35-4341-9d69-1627d6ee6b43 */ - #[TestDox('Some letter clusters are treated like a single consonant -> word beginning with sch')] + #[TestDox("Some letter clusters are treated like a single consonant -> Word beginning with 'sch'")] public function testWordBeginningWithSch(): void { $this->assertEquals("oolschay", translate("school")); @@ -168,7 +168,7 @@ public function testWordBeginningWithSch(): void /** * uuid 54b796cb-613d-4509-8c82-8fbf8fc0af9e */ - #[TestDox('Some letter clusters are treated like a single vowel -> word beginning with yt')] + #[TestDox("Some letter clusters are treated like a single vowel -> Word beginning with 'yt'")] public function testWordBeginningWithYt(): void { $this->assertEquals("yttriaay", translate("yttria")); @@ -177,7 +177,7 @@ public function testWordBeginningWithYt(): void /** * uuid 8c37c5e1-872e-4630-ba6e-d20a959b67f6 */ - #[TestDox('Some letter clusters are treated like a single vowel -> word beginning with xr')] + #[TestDox("Some letter clusters are treated like a single vowel -> Word beginning with 'xr'")] public function testWordBeginningWithXr(): void { $this->assertEquals("xrayay", translate("xray")); @@ -187,7 +187,7 @@ public function testWordBeginningWithXr(): void /** * uuid a4a36d33-96f3-422c-a233-d4021460ff00 */ - #[TestDox('Position of y in a word determines if it is a consonant or a vowel -> y is treated like a consonant at the beginning of a word')] + #[TestDox("Position of 'y' in a word determines if it is a consonant or a vowel -> 'y' is treated like a consonant at the beginning of a word")] public function testWordBeginningWithY(): void { $this->assertEquals("ellowyay", translate("yellow")); @@ -196,7 +196,7 @@ public function testWordBeginningWithY(): void /** * uuid adc90017-1a12-4100-b595-e346105042c7 */ - #[TestDox('Position of y in a word determines if it is a consonant or a vowel -> y is treated like a vowel at the end of a consonant cluster')] + #[TestDox("Position of 'y' in a word determines if it is a consonant or a vowel -> 'y' is treated like a vowel at the end of a consonant cluster")] public function testWordBeginningWithConsonantClusterThenY(): void { $this->assertEquals("ythmrhay", translate("rhythm")); @@ -205,7 +205,7 @@ public function testWordBeginningWithConsonantClusterThenY(): void /** * uuid 29b4ca3d-efe5-4a95-9a54-8467f2e5e59a */ - #[TestDox('Position of y in a word determines if it is a consonant or a vowel -> y as second letter in two letter word')] + #[TestDox("Position of 'y' in a word determines if it is a consonant or a vowel -> 'y' as second letter in two letter word")] public function testTwoLetterWordWithY(): void { $this->assertEquals("ymay", translate("my")); @@ -215,7 +215,7 @@ public function testTwoLetterWordWithY(): void /** * uuid 44616581-5ce3-4a81-82d0-40c7ab13d2cf */ - #[TestDox('Phrases are translated -> a whole phrase')] + #[TestDox('Phrases are translated -> A whole phrase')] public function testAWholePhrase(): void { $this->assertEquals("ickquay astfay unray", translate("quick fast run")); diff --git a/exercises/practice/prime-factors/PrimeFactorsTest.php b/exercises/practice/prime-factors/PrimeFactorsTest.php index cf6c8c4f5..39fa9452e 100644 --- a/exercises/practice/prime-factors/PrimeFactorsTest.php +++ b/exercises/practice/prime-factors/PrimeFactorsTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: 924fc966-a8f5-4288-82f2-6b9224819ccd */ - #[TestDox('no factors')] + #[TestDox('No factors')] public function testNoFactors(): void { $this->assertSame([], factors(1)); @@ -24,7 +24,7 @@ public function testNoFactors(): void /** * uuid: 17e30670-b105-4305-af53-ddde182cb6ad */ - #[TestDox('prime number')] + #[TestDox('Prime number')] public function testOneFactor(): void { $this->assertSame([2], factors(2)); @@ -33,7 +33,7 @@ public function testOneFactor(): void /** * uuid: 238d57c8-4c12-42ef-af34-ae4929f94789 */ - #[TestDox('another prime number')] + #[TestDox('Another prime number')] public function testAnotherPrimeNumber(): void { $this->assertSame([3], factors(3)); @@ -42,7 +42,7 @@ public function testAnotherPrimeNumber(): void /** * uuid: f59b8350-a180-495a-8fb1-1712fbee1158 */ - #[TestDox('square of a prime')] + #[TestDox('Square of a prime')] public function testSquareOfAPrime(): void { $this->assertSame([3, 3], factors(9)); @@ -51,7 +51,7 @@ public function testSquareOfAPrime(): void /** * uuid: 756949d3-3158-4e3d-91f2-c4f9f043ee70 */ - #[TestDox('product of first prime')] + #[TestDox('Product of first prime')] public function testProductOfFirstPrime(): void { $this->assertSame([2, 2], factors(4)); @@ -60,7 +60,7 @@ public function testProductOfFirstPrime(): void /** * uuid: bc8c113f-9580-4516-8669-c5fc29512ceb */ - #[TestDox('cube of a prime')] + #[TestDox('Cube of a prime')] public function testCubeOfAPrime(): void { $this->assertSame([2, 2, 2], factors(8)); @@ -69,7 +69,7 @@ public function testCubeOfAPrime(): void /** * uuid: 7d6a3300-a4cb-4065-bd33-0ced1de6cb44 */ - #[TestDox('product of second prime')] + #[TestDox('Product of second prime')] public function testProductOfSecondPrime(): void { $this->assertSame([3, 3, 3], factors(27)); @@ -78,7 +78,7 @@ public function testProductOfSecondPrime(): void /** * uuid: 073ac0b2-c915-4362-929d-fc45f7b9a9e4 */ - #[TestDox('product of third prime')] + #[TestDox('Product of third prime')] public function testProductOfThirdPrime(): void { $this->assertSame([5, 5, 5, 5], factors(625)); @@ -87,7 +87,7 @@ public function testProductOfThirdPrime(): void /** * uuid: 6e0e4912-7fb6-47f3-a9ad-dbcd79340c75 */ - #[TestDox('product of first and second prime')] + #[TestDox('Product of first and second prime')] public function testProductOfFirstAndSecondPrime(): void { $this->assertEquals([2, 3], factors(6)); @@ -96,7 +96,7 @@ public function testProductOfFirstAndSecondPrime(): void /** * uuid: 00485cd3-a3fe-4fbe-a64a-a4308fc1f870 */ - #[TestDox('product of primes and non-primes')] + #[TestDox('Product of primes and non-primes')] public function testProductOfPrimesAndNonPrimes(): void { $this->assertEquals([2, 2, 3], factors(12)); @@ -105,7 +105,7 @@ public function testProductOfPrimesAndNonPrimes(): void /** * uuid: 02251d54-3ca1-4a9b-85e1-b38f4b0ccb91 */ - #[TestDox('product of primes')] + #[TestDox('Product of primes')] public function testProductOfPrimes(): void { $this->assertEquals([5, 17, 23, 461], factors(901255)); @@ -114,7 +114,7 @@ public function testProductOfPrimes(): void /** * uuid: 070cf8dc-e202-4285-aa37-8d775c9cd473 */ - #[TestDox('factors include a large prime')] + #[TestDox('Factors include a large prime')] public function testFactorsIncludeALargePrime(): void { $this->assertEquals([11, 9539, 894119], factors(93819012551)); diff --git a/exercises/practice/proverb/ProverbTest.php b/exercises/practice/proverb/ProverbTest.php index 3d65d086e..faeca570f 100644 --- a/exercises/practice/proverb/ProverbTest.php +++ b/exercises/practice/proverb/ProverbTest.php @@ -20,7 +20,7 @@ public function setUp(): void } /** @uuid e974b73e-7851-484f-8d6d-92e07fe742fc */ - #[TestDox('zero pieces')] + #[TestDox('Zero pieces')] public function testZeroPieces(): void { $pieces = []; @@ -29,7 +29,7 @@ public function testZeroPieces(): void } /** @uuid 2fcd5f5e-8b82-4e74-b51d-df28a5e0faa4 */ - #[TestDox('one piece')] + #[TestDox('One piece')] public function testOnePiece(): void { $pieces = ['nail']; @@ -38,7 +38,7 @@ public function testOnePiece(): void } /** @uuid d9d0a8a1-d933-46e2-aa94-eecf679f4b0e */ - #[TestDox('two pieces')] + #[TestDox('Two pieces')] public function testTwoPieces(): void { $pieces = ['nail', 'shoe']; @@ -50,7 +50,7 @@ public function testTwoPieces(): void } /** @uuid c95ef757-5e94-4f0d-a6cb-d2083f5e5a83 */ - #[TestDox('three pieces')] + #[TestDox('Three pieces')] public function testThreePieces(): void { $pieces = ['nail', 'shoe', 'horse']; @@ -63,7 +63,7 @@ public function testThreePieces(): void } /** @uuid 433fb91c-35a2-4d41-aeab-4de1e82b2126 */ - #[TestDox('full proverb')] + #[TestDox('Full proverb')] public function testFullProverb(): void { $pieces = ['nail', 'shoe', 'horse', 'rider', 'message', 'battle', 'kingdom']; @@ -80,7 +80,7 @@ public function testFullProverb(): void } /** @uuid c1eefa5a-e8d9-41c7-91d4-99fab6d6b9f7 */ - #[TestDox('four pieces modernized')] + #[TestDox('Four pieces modernized')] public function testFourPiecesModernized(): void { $pieces = ['pin', 'gun', 'soldier', 'battle']; diff --git a/exercises/practice/queen-attack/QueenAttackTest.php b/exercises/practice/queen-attack/QueenAttackTest.php index 9c68ace0c..ccb05f09c 100644 --- a/exercises/practice/queen-attack/QueenAttackTest.php +++ b/exercises/practice/queen-attack/QueenAttackTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid: 3ac4f735-d36c-44c4-a3e2-316f79704203 */ - #[TestDox('Test creation of Queens with valid and invalid positions -> queen with a valid position')] + #[TestDox('Test creation of Queens with valid and invalid positions -> Queen with a valid position')] public function testCreationOfQueensWithValidAndInvalidPositionsCreateQueenWithValidPosition(): void { $this->assertTrue(placeQueen(2, 2)); @@ -24,7 +24,7 @@ public function testCreationOfQueensWithValidAndInvalidPositionsCreateQueenWithV /** * uuid: 4e812d5d-b974-4e38-9a6b-8e0492bfa7be */ - #[TestDox('Test creation of Queens with valid and invalid positions -> queen must have positive row')] + #[TestDox('Test creation of Queens with valid and invalid positions -> Queen must have positive row')] public function testCreationOfQueensWithValidAndInvalidPositionsQueenMustHavePositiveRow(): void { $this->expectException(InvalidArgumentException::class); @@ -34,7 +34,7 @@ public function testCreationOfQueensWithValidAndInvalidPositionsQueenMustHavePos /** * uuid: f07b7536-b66b-4f08-beb9-4d70d891d5c8 */ - #[TestDox('Test creation of Queens with valid and invalid positions -> queen must have row on board')] + #[TestDox('Test creation of Queens with valid and invalid positions -> Queen must have row on board')] public function testCreationOfQueensWithValidAndInvalidPositionsQueenMustHaveRowOnBoard(): void { $this->expectException(InvalidArgumentException::class); @@ -44,7 +44,7 @@ public function testCreationOfQueensWithValidAndInvalidPositionsQueenMustHaveRow /** * uuid: 15a10794-36d9-4907-ae6b-e5a0d4c54ebe */ - #[TestDox('Test creation of Queens with valid and invalid positions -> queen must have positive column')] + #[TestDox('Test creation of Queens with valid and invalid positions -> Queen must have positive column')] public function testCreationOfQueensWithValidAndInvalidPositionsQueenMustHavePositiveColumn(): void { $this->expectException(InvalidArgumentException::class); @@ -54,7 +54,7 @@ public function testCreationOfQueensWithValidAndInvalidPositionsQueenMustHavePos /** * uuid: 6907762d-0e8a-4c38-87fb-12f2f65f0ce4 */ - #[TestDox('Test creation of Queens with valid and invalid positions -> queen must have column on board')] + #[TestDox('Test creation of Queens with valid and invalid positions -> Queen must have column on board')] public function testCreationOfQueensWithValidAndInvalidPositionsQueenMustHaveColumnOnBoard(): void { $this->expectException(InvalidArgumentException::class); @@ -64,7 +64,7 @@ public function testCreationOfQueensWithValidAndInvalidPositionsQueenMustHaveCol /** * uuid: 33ae4113-d237-42ee-bac1-e1e699c0c007 */ - #[TestDox('Test the ability of one queen to attack another -> cannot attack')] + #[TestDox('Test the ability of one queen to attack another -> Cannot attack')] public function testTheAbilityOfOneQueenToAttackAnotherCannotAttack(): void { $this->assertFalse(canAttack([2, 4], [6, 6])); @@ -73,7 +73,7 @@ public function testTheAbilityOfOneQueenToAttackAnotherCannotAttack(): void /** * uuid: eaa65540-ea7c-4152-8c21-003c7a68c914 */ - #[TestDox('Test the ability of one queen to attack another -> can attack on same row')] + #[TestDox('Test the ability of one queen to attack another -> Can attack on same row')] public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnSameRow(): void { $this->assertTrue(canAttack([2, 4], [2, 6])); @@ -82,7 +82,7 @@ public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnSameRow(): voi /** * uuid: bae6f609-2c0e-4154-af71-af82b7c31cea */ - #[TestDox('Test the ability of one queen to attack another -> can attack on same column')] + #[TestDox('Test the ability of one queen to attack another -> Can attack on same column')] public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnSameColumn(): void { $this->assertTrue(canAttack([4, 5], [2, 5])); @@ -91,7 +91,7 @@ public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnSameColumn(): /** * uuid: 0e1b4139-b90d-4562-bd58-dfa04f1746c7 */ - #[TestDox('Test the ability of one queen to attack another -> can attack on first diagonal')] + #[TestDox('Test the ability of one queen to attack another -> Can attack on first diagonal')] public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnFirstDiagonal(): void { $this->assertTrue(canAttack([2, 2], [0, 4])); @@ -100,7 +100,7 @@ public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnFirstDiagonal( /** * uuid: ff9b7ed4-e4b6-401b-8d16-bc894d6d3dcd */ - #[TestDox('Test the ability of one queen to attack another -> can attack on second diagonal')] + #[TestDox('Test the ability of one queen to attack another -> Can attack on second diagonal')] public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnSecondDiagonal(): void { $this->assertTrue(canAttack([2, 2], [3, 1])); @@ -109,7 +109,7 @@ public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnSecondDiagonal /** * uuid: 0a71e605-6e28-4cc2-aa47-d20a2e71037a */ - #[TestDox('Test the ability of one queen to attack another -> can attack on third diagonal')] + #[TestDox('Test the ability of one queen to attack another -> Can attack on third diagonal')] public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnThirdDiagonal(): void { $this->assertTrue(canAttack([2, 2], [1, 1])); @@ -118,7 +118,7 @@ public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnThirdDiagonal( /** * uuid: 0790b588-ae73-4f1f-a968-dd0b34f45f86 */ - #[TestDox('Test the ability of one queen to attack another -> can attack on fourth diagonal')] + #[TestDox('Test the ability of one queen to attack another -> Can attack on fourth diagonal')] public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnFourthDiagonal(): void { $this->assertTrue(canAttack([1, 7], [0, 6])); @@ -127,7 +127,7 @@ public function testTheAbilityOfOneQueenToAttackAnotherCanAttackOnFourthDiagonal /** * uuid: 543f8fd4-2597-4aad-8d77-cbdab63619f8 */ - #[TestDox('Test the ability of one queen to attack another -> cannot attack if falling diagonals are only the same when reflected across the longest falling diagonal')] + #[TestDox('Test the ability of one queen to attack another -> Cannot attack if falling diagonals are only the same when reflected across the longest falling diagonal')] public function testTheAbilityOfOneQueenToAttackAnotherCannotAttackReflectedDiagonal(): void { $this->assertFalse(canAttack([4, 1], [2, 5])); diff --git a/exercises/practice/rail-fence-cipher/RailFenceCipherTest.php b/exercises/practice/rail-fence-cipher/RailFenceCipherTest.php index 0f13d02c9..c5d025dc9 100644 --- a/exercises/practice/rail-fence-cipher/RailFenceCipherTest.php +++ b/exercises/practice/rail-fence-cipher/RailFenceCipherTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 46dc5c50-5538-401d-93a5-41102680d068 */ - #[TestDox('encode with two rails')] + #[TestDox('Encode with two rails')] public function testEncodeWithTwoRails(): void { $plainText = "XOXOXOXOXOXOXOXOXO"; @@ -27,7 +27,7 @@ public function testEncodeWithTwoRails(): void /** * uuid 25691697-fbd8-4278-8c38-b84068b7bc29 */ - #[TestDox('encode with three rails')] + #[TestDox('Encode with three rails')] public function testEncodeWithThreeRails(): void { $plainText = "WEAREDISCOVEREDFLEEATONCE"; @@ -39,7 +39,7 @@ public function testEncodeWithThreeRails(): void /** * uuid 384f0fea-1442-4f1a-a7c4-5cbc2044002c */ - #[TestDox('encode with ending in the middle')] + #[TestDox('Encode with ending in the middle')] public function testEncodeWithEndingInTheMiddle(): void { $plainText = "EXERCISES"; @@ -51,7 +51,7 @@ public function testEncodeWithEndingInTheMiddle(): void /** * uuid cd525b17-ec34-45ef-8f0e-4f27c24a7127 */ - #[TestDox('decode with three rails')] + #[TestDox('Decode with three rails')] public function testDecodeWithThreeRails(): void { $encryptedText = "TEITELHDVLSNHDTISEIIEA"; @@ -63,7 +63,7 @@ public function testDecodeWithThreeRails(): void /** * uuid dd7b4a98-1a52-4e5c-9499-cbb117833507 */ - #[TestDox('decode with five rails')] + #[TestDox('Decode with five rails')] public function testDecodeWithFiveRails(): void { $encryptedText = "EIEXMSMESAORIWSCE"; @@ -75,7 +75,7 @@ public function testDecodeWithFiveRails(): void /** * uuid 93e1ecf4-fac9-45d9-9cd2-591f47d3b8d3 */ - #[TestDox('decode with six rails')] + #[TestDox('Decode with six rails')] public function testDecodeWithSixRails(): void { $encryptedText = "133714114238148966225439541018335470986172518171757571896261"; diff --git a/exercises/practice/reverse-string/ReverseStringTest.php b/exercises/practice/reverse-string/ReverseStringTest.php index 4e70b21ed..121f89bd8 100644 --- a/exercises/practice/reverse-string/ReverseStringTest.php +++ b/exercises/practice/reverse-string/ReverseStringTest.php @@ -15,14 +15,14 @@ public static function setUpBeforeClass(): void /** * uuid c3b7d806-dced-49ee-8543-933fd1719b1c */ - #[TestDox('an empty string')] + #[TestDox('An empty string')] public function testEmptyString(): void { $this->assertEquals("", reverseString("")); } /** uuid 01ebf55b-bebb-414e-9dec-06f7bb0bee3c */ - #[TestDox('a word')] + #[TestDox('A word')] public function testWord(): void { $this->assertEquals("tobor", reverseString("robot")); @@ -31,7 +31,7 @@ public function testWord(): void /** * uuid 0f7c07e4-efd1-4aaa-a07a-90b49ce0b746 */ - #[TestDox('a capitalized word')] + #[TestDox('A capitalized word')] public function testCapitalizedWord(): void { $this->assertEquals("nemaR", reverseString("Ramen")); @@ -40,7 +40,7 @@ public function testCapitalizedWord(): void /** * uuid 71854b9c-f200-4469-9f5c-1e8e5eff5614 */ - #[TestDox('a sentence with punctuation')] + #[TestDox('A sentence with punctuation')] public function testSentenceWithPunctuation(): void { $this->assertEquals("!yrgnuh m'I", reverseString("I'm hungry!")); @@ -49,7 +49,7 @@ public function testSentenceWithPunctuation(): void /** * uuid 1f8ed2f3-56f3-459b-8f3e-6d8d654a1f6c */ - #[TestDox('a palindrome')] + #[TestDox('A palindrome')] public function testPalindrome(): void { $this->assertEquals("racecar", reverseString("racecar")); @@ -58,7 +58,7 @@ public function testPalindrome(): void /** * uuid b9e7dec1-c6df-40bd-9fa3-cd7ded010c4c */ - #[TestDox('an even-sized word')] + #[TestDox('An even-sized word')] public function testEvenSizedWord(): void { $this->assertEquals("reward", reverseString("drawer")); diff --git a/exercises/practice/run-length-encoding/RunLengthEncodingTest.php b/exercises/practice/run-length-encoding/RunLengthEncodingTest.php index 69f01a7f4..8f5d10460 100644 --- a/exercises/practice/run-length-encoding/RunLengthEncodingTest.php +++ b/exercises/practice/run-length-encoding/RunLengthEncodingTest.php @@ -154,7 +154,7 @@ public function testDecodeLowercaseString(): void /** * uuid: 2a762efd-8695-4e04-b0d6-9736899fbc16 */ - #[TestDox('encode followed by decode gives original string')] + #[TestDox('Encode followed by decode gives original string')] public function testEncodeFollowedByDecodeGivesOriginalString(): void { $this->assertEquals( diff --git a/exercises/practice/say/SayTest.php b/exercises/practice/say/SayTest.php index 8b94c3c47..11b7b81cb 100644 --- a/exercises/practice/say/SayTest.php +++ b/exercises/practice/say/SayTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 5d22a120-ba0c-428c-bd25-8682235d83e8 */ - #[TestDox('zero')] + #[TestDox('Zero')] public function testZero(): void { $this->assertEquals('zero', say(0)); @@ -24,7 +24,7 @@ public function testZero(): void /** * uuid 9b5eed77-dbf6-439d-b920-3f7eb58928f6 */ - #[TestDox('one')] + #[TestDox('One')] public function testOne(): void { $this->assertEquals('one', say(1)); @@ -33,7 +33,7 @@ public function testOne(): void /** * uuid 7c499be1-612e-4096-a5e1-43b2f719406d */ - #[TestDox('fourteen')] + #[TestDox('Fourteen')] public function testFourteen(): void { $this->assertEquals('fourteen', say(14)); @@ -42,7 +42,7 @@ public function testFourteen(): void /** * uuid f541dd8e-f070-4329-92b4-b7ce2fcf06b4 */ - #[TestDox('twenty')] + #[TestDox('Twenty')] public function testTwenty(): void { $this->assertEquals('twenty', say(20)); @@ -51,7 +51,7 @@ public function testTwenty(): void /** * uuid d78601eb-4a84-4bfa-bf0e-665aeb8abe94 */ - #[TestDox('twenty-two')] + #[TestDox('Twenty-two')] public function testTwentyTwo(): void { $this->assertEquals('twenty-two', say(22)); @@ -60,7 +60,7 @@ public function testTwentyTwo(): void /** * uuid f010d4ca-12c9-44e9-803a-27789841adb1 */ - #[TestDox('thirty')] + #[TestDox('Thirty')] public function testThirty(): void { $this->assertEquals('thirty', say(30)); @@ -69,7 +69,7 @@ public function testThirty(): void /** * uuid 738ce12d-ee5c-4dfb-ad26-534753a98327 */ - #[TestDox('ninety-nine')] + #[TestDox('Ninety-nine')] public function testNinetyNine(): void { $this->assertEquals('ninety-nine', say(99)); @@ -78,7 +78,7 @@ public function testNinetyNine(): void /** * uuid e417d452-129e-4056-bd5b-6eb1df334dce */ - #[TestDox('one hundred')] + #[TestDox('One hundred')] public function testOneHundred(): void { $this->assertEquals('one hundred', say(100)); @@ -87,7 +87,7 @@ public function testOneHundred(): void /** * uuid d6924f30-80ba-4597-acf6-ea3f16269da8 */ - #[TestDox('one hundred twenty-three')] + #[TestDox('One hundred twenty-three')] public function testOneHundredTwentyThree(): void { $this->assertEquals('one hundred twenty-three', say(123)); @@ -96,7 +96,7 @@ public function testOneHundredTwentyThree(): void /** * uuid 2f061132-54bc-4fd4-b5df-0a3b778959b9 */ - #[TestDox('two hundred')] + #[TestDox('Two hundred')] public function testTwoHundred(): void { $this->assertEquals('two hundred', say(200)); @@ -105,7 +105,7 @@ public function testTwoHundred(): void /** * uuid feed6627-5387-4d38-9692-87c0dbc55c33 */ - #[TestDox('nine hundred ninety-nine')] + #[TestDox('Nine hundred ninety-nine')] public function testNineHundredNinetyNine(): void { $this->assertEquals('nine hundred ninety-nine', say(999)); @@ -114,7 +114,7 @@ public function testNineHundredNinetyNine(): void /** * uuid 3d83da89-a372-46d3-b10d-de0c792432b3 */ - #[TestDox('one thousand')] + #[TestDox('One thousand')] public function testOneThousand(): void { $this->assertEquals('one thousand', say(1000)); @@ -123,7 +123,7 @@ public function testOneThousand(): void /** * uuid 865af898-1d5b-495f-8ff0-2f06d3c73709 */ - #[TestDox('one thousand two hundred thirty-four')] + #[TestDox('One thousand two hundred thirty-four')] public function testOneThousandTwoHundredThirtyFour(): void { $this->assertEquals('one thousand two hundred thirty-four', say(1234)); @@ -132,7 +132,7 @@ public function testOneThousandTwoHundredThirtyFour(): void /** * uuid b6a3f442-266e-47a3-835d-7f8a35f6cf7f */ - #[TestDox('one million')] + #[TestDox('One million')] public function testOneMillion(): void { $this->assertEquals('one million', say(1_000_000)); @@ -141,7 +141,7 @@ public function testOneMillion(): void /** * uuid 2cea9303-e77e-4212-b8ff-c39f1978fc70 */ - #[TestDox('one million two thousand three hundred forty-five')] + #[TestDox('One million two thousand three hundred forty-five')] public function testOneMillionTwoThousandThreeHundredFortyFive(): void { $this->assertEquals( @@ -153,7 +153,7 @@ public function testOneMillionTwoThousandThreeHundredFortyFive(): void /** * uuid 3e240eeb-f564-4b80-9421-db123f66a38f */ - #[TestDox('one billion')] + #[TestDox('One billion')] public function testOneBillion(): void { $this->assertEquals('one billion', say(1_000_000_000)); @@ -162,7 +162,7 @@ public function testOneBillion(): void /** * uuid 9a43fed1-c875-4710-8286-5065d73b8a9e */ - #[TestDox('a big number')] + #[TestDox('A big number')] public function testABigNumber(): void { $this->assertEquals( @@ -175,7 +175,7 @@ public function testABigNumber(): void /** * uuid 49a6a17b-084e-423e-994d-a87c0ecc05ef */ - #[TestDox('numbers below zero are out of range')] + #[TestDox('Numbers below zero are out of range')] public function testNumbersBelowZeroAreOutOfRange(): void { $this->expectException(InvalidArgumentException::class); @@ -187,7 +187,7 @@ public function testNumbersBelowZeroAreOutOfRange(): void /** * uuid 4d6492eb-5853-4d16-9d34-b0f61b261fd9 */ - #[TestDox('numbers above 999,999,999,999 are out of range')] + #[TestDox('Numbers above 999,999,999,999 are out of range')] public function testNumbersAbove999999999999AreOutOfRange(): void { $this->expectException(InvalidArgumentException::class); diff --git a/exercises/practice/secret-handshake/SecretHandshakeTest.php b/exercises/practice/secret-handshake/SecretHandshakeTest.php index 12d31915a..01ebaf90f 100644 --- a/exercises/practice/secret-handshake/SecretHandshakeTest.php +++ b/exercises/practice/secret-handshake/SecretHandshakeTest.php @@ -40,7 +40,7 @@ public function testDoubleBlinkForTen(): void /** * uuid: 0e20e466-3519-4134-8082-5639d85fef71 */ - #[TestDox('close your eyes for 100')] + #[TestDox('Close your eyes for 100')] public function testCloseYourEyesForHundred(): void { $this->assertEquals(['close your eyes'], $this->secretHandshake->commands(0b100)); @@ -49,7 +49,7 @@ public function testCloseYourEyesForHundred(): void /** * uuid: b339ddbb-88b7-4b7d-9b19-4134030d9ac0 */ - #[TestDox('jump for 1000')] + #[TestDox('Jump for 1000')] public function testJumpForThousand(): void { $this->assertEquals(['jump'], $this->secretHandshake->commands(8)); @@ -58,7 +58,7 @@ public function testJumpForThousand(): void /** * uuid: 40499fb4-e60c-43d7-8b98-0de3ca44e0eb */ - #[TestDox('combine two actions')] + #[TestDox('Combine two actions')] public function testCombineTwoActions(): void { $this->assertEquals(['wink', 'double blink'], $this->secretHandshake->commands(3)); @@ -67,7 +67,7 @@ public function testCombineTwoActions(): void /** * uuid: 9730cdd5-ef27-494b-afd3-5c91ad6c3d9d */ - #[TestDox('reverse two actions')] + #[TestDox('Reverse two actions')] public function testReverseTwoActions(): void { $this->assertEquals(['double blink', 'wink'], $this->secretHandshake->commands(0b10011)); @@ -76,7 +76,7 @@ public function testReverseTwoActions(): void /** * uuid: 0b828205-51ca-45cd-90d5-f2506013f25f */ - #[TestDox('reversing one action gives the same action')] + #[TestDox('Reversing one action gives the same action')] public function testReversingOneActionGivesTheSameAction(): void { $this->assertEquals(['jump'], $this->secretHandshake->commands(24)); @@ -85,7 +85,7 @@ public function testReversingOneActionGivesTheSameAction(): void /** * uuid: 9949e2ac-6c9c-4330-b685-2089ab28b05f */ - #[TestDox('reversing no actions still gives no actions')] + #[TestDox('Reversing no actions still gives no actions')] public function testReversingNoActionsStillGivesNoActions(): void { $this->assertEquals([], $this->secretHandshake->commands(16)); @@ -94,7 +94,7 @@ public function testReversingNoActionsStillGivesNoActions(): void /** * uuid: 23fdca98-676b-4848-970d-cfed7be39f81 */ - #[TestDox('all possible actions')] + #[TestDox('All possible actions')] public function testAllPossibleActions(): void { $this->assertEquals( @@ -106,7 +106,7 @@ public function testAllPossibleActions(): void /** * uuid: ae8fe006-d910-4d6f-be00-54b7c3799e79 */ - #[TestDox('reverse all possible actions')] + #[TestDox('Reverse all possible actions')] public function testReverseAllPossibleActions(): void { $this->assertEquals( @@ -118,7 +118,7 @@ public function testReverseAllPossibleActions(): void /** * uuid: 3d36da37-b31f-4cdb-a396-d93a2ee1c4a5 */ - #[TestDox('do nothing for zero')] + #[TestDox('Do nothing for zero')] public function testDoNothingForZero(): void { $this->assertEquals([], $this->secretHandshake->commands(0b0)); diff --git a/exercises/practice/series/SeriesTest.php b/exercises/practice/series/SeriesTest.php index 3d45ed361..199aad949 100644 --- a/exercises/practice/series/SeriesTest.php +++ b/exercises/practice/series/SeriesTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 7ae7a46a-d992-4c2a-9c15-a112d125ebad */ - #[TestDox('slices of one from one')] + #[TestDox('Slices of one from one')] public function testSlicesOfOneFromOne(): void { $this->assertEquals( @@ -27,7 +27,7 @@ public function testSlicesOfOneFromOne(): void /** * uuid 3143b71d-f6a5-4221-aeae-619f906244d2 */ - #[TestDox('slices of one from two')] + #[TestDox('Slices of one from two')] public function testSlicesOfOneFromTwo(): void { $this->assertEquals( @@ -39,7 +39,7 @@ public function testSlicesOfOneFromTwo(): void /** * uuid dbb68ff5-76c5-4ccd-895a-93dbec6d5805 */ - #[TestDox('slices of two')] + #[TestDox('Slices of two')] public function testSlicesOfTwo(): void { $this->assertEquals( @@ -51,7 +51,7 @@ public function testSlicesOfTwo(): void /** * uuid 19bbea47-c987-4e11-a7d1-e103442adf86 */ - #[TestDox('slices of two overlap')] + #[TestDox('Slices of two overlap')] public function testSlicesOfTwoOverlap(): void { $this->assertEquals( @@ -63,7 +63,7 @@ public function testSlicesOfTwoOverlap(): void /** * uuid 8e17148d-ba0a-4007-a07f-d7f87015d84c */ - #[TestDox('slices can include duplicates')] + #[TestDox('Slices can include duplicates')] public function testSlicesCanIncludeDuplicates(): void { $this->assertEquals( @@ -75,7 +75,7 @@ public function testSlicesCanIncludeDuplicates(): void /** * uuid bd5b085e-f612-4f81-97a8-6314258278b0 */ - #[TestDox('slices of a long series')] + #[TestDox('Slices of a long series')] public function testSlicesOfALongSeries(): void { $this->assertEquals( @@ -96,7 +96,7 @@ public function testSlicesOfALongSeries(): void /** * uuid 6d235d85-46cf-4fae-9955-14b6efef27cd */ - #[TestDox('slice length is too large')] + #[TestDox('Slice length is too large')] public function testSliceLengthIsTooLarge(): void { $this->expectException(Exception::class); @@ -106,7 +106,7 @@ public function testSliceLengthIsTooLarge(): void /** * uuid d7957455-346d-4e47-8e4b-87ed1564c6d7 */ - #[TestDox('slice length is way too large')] + #[TestDox('Slice length is way too large')] public function testSliceLengthIsWayTooLarge(): void { $this->expectException(Exception::class); @@ -116,7 +116,7 @@ public function testSliceLengthIsWayTooLarge(): void /** * uuid d34004ad-8765-4c09-8ba1-ada8ce776806 */ - #[TestDox('slice length cannot be zero')] + #[TestDox('Slice length cannot be zero')] public function testSliceLengthCannotBeZero(): void { $this->expectException(Exception::class); @@ -126,7 +126,7 @@ public function testSliceLengthCannotBeZero(): void /** * uuid 10ab822d-8410-470a-a85d-23fbeb549e54 */ - #[TestDox('slice length cannot be negative')] + #[TestDox('Slice length cannot be negative')] public function testSliceLengthCannotBeNegative(): void { $this->expectException(Exception::class); @@ -136,7 +136,7 @@ public function testSliceLengthCannotBeNegative(): void /** * uuid c7ed0812-0e4b-4bf3-99c4-28cbbfc246a2 */ - #[TestDox('empty series is invalid')] + #[TestDox('Empty series is invalid')] public function testEmptySeriesIsInvalid(): void { $this->expectException(Exception::class); diff --git a/exercises/practice/spiral-matrix/SpiralMatrixTest.php b/exercises/practice/spiral-matrix/SpiralMatrixTest.php index bb4839d30..bb231f348 100644 --- a/exercises/practice/spiral-matrix/SpiralMatrixTest.php +++ b/exercises/practice/spiral-matrix/SpiralMatrixTest.php @@ -22,7 +22,7 @@ public function setUp(): void /** * uuid: 8f584201-b446-4bc9-b132-811c8edd9040 */ - #[TestDox('empty spiral')] + #[TestDox('Empty spiral')] public function testEmptySpiral(): void { $expected = []; @@ -33,7 +33,7 @@ public function testEmptySpiral(): void /** * uuid: e40ae5f3-e2c9-4639-8116-8a119d632ab2 */ - #[TestDox('trivial spiral')] + #[TestDox('Trivial spiral')] public function testTrivialSpiral(): void { $expected = [[1]]; @@ -44,7 +44,7 @@ public function testTrivialSpiral(): void /** * uuid: cf05e42d-eb78-4098-a36e-cdaf0991bc48 */ - #[TestDox('spiral of size 2')] + #[TestDox('Spiral of size 2')] public function testSpiralOfSize2(): void { $expected = [ @@ -58,7 +58,7 @@ public function testSpiralOfSize2(): void /** * uuid: 1c475667-c896-4c23-82e2-e033929de939 */ - #[TestDox('spiral of size 3')] + #[TestDox('Spiral of size 3')] public function testSpiralOfSize3(): void { $expected = [ @@ -73,7 +73,7 @@ public function testSpiralOfSize3(): void /** * uuid: 05ccbc48-d891-44f5-9137-f4ce462a759d */ - #[TestDox('spiral of size 4')] + #[TestDox('Spiral of size 4')] public function testSpiralOfSize4(): void { $expected = [ @@ -89,7 +89,7 @@ public function testSpiralOfSize4(): void /** * uuid: f4d2165b-1738-4e0c-bed0-c459045ae50d */ - #[TestDox('spiral of size 5')] + #[TestDox('Spiral of size 5')] public function testSpiralOfSize5(): void { $expected = [ diff --git a/exercises/practice/square-root/SquareRootTest.php b/exercises/practice/square-root/SquareRootTest.php index 4797f1c3c..549156120 100644 --- a/exercises/practice/square-root/SquareRootTest.php +++ b/exercises/practice/square-root/SquareRootTest.php @@ -12,7 +12,7 @@ public static function setUpBeforeClass(): void require_once 'SquareRoot.php'; } - #[TestDox('does not use or mention PHP square root functions')] + #[TestDox('Does not use or mention PHP square root functions')] public function testDoesNotUseOrMentionPhpSquareRootFunctions(): void { $code = file_get_contents(__DIR__ . '/SquareRoot.php'); @@ -23,7 +23,7 @@ public function testDoesNotUseOrMentionPhpSquareRootFunctions(): void /** * uuid: 9b748478-7b0a-490c-b87a-609dacf631fd */ - #[TestDox('root of 1')] + #[TestDox('Root of 1')] public function testRootOfOne(): void { $this->assertEquals(1, squareRoot(1)); @@ -32,7 +32,7 @@ public function testRootOfOne(): void /** * uuid: 7d3aa9ba-9ac6-4e93-a18b-2e8b477139bb */ - #[TestDox('root of 4')] + #[TestDox('Root of 4')] public function testRootOfFour(): void { $this->assertEquals(2, squareRoot(4)); @@ -41,7 +41,7 @@ public function testRootOfFour(): void /** * uuid: 6624aabf-3659-4ae0-a1c8-25ae7f33c6ef */ - #[TestDox('root of 25')] + #[TestDox('Root of 25')] public function testRootOfTwentyFive(): void { $this->assertEquals(5, squareRoot(25)); @@ -50,7 +50,7 @@ public function testRootOfTwentyFive(): void /** * uuid: 93beac69-265e-4429-abb1-94506b431f81 */ - #[TestDox('root of 81')] + #[TestDox('Root of 81')] public function testRootOfEightyOne(): void { $this->assertEquals(9, squareRoot(81)); @@ -59,7 +59,7 @@ public function testRootOfEightyOne(): void /** * uuid: fbddfeda-8c4f-4bc4-87ca-6991af35360e */ - #[TestDox('root of 196')] + #[TestDox('Root of 196')] public function testRootOfOneHundredNinetySix(): void { $this->assertEquals(14, squareRoot(196)); @@ -68,7 +68,7 @@ public function testRootOfOneHundredNinetySix(): void /** * uuid: c03d0532-8368-4734-a8e0-f96a9eb7fc1d */ - #[TestDox('root of 65025')] + #[TestDox('Root of 65025')] public function testRootOfSixtyFiveThousandTwentyFive(): void { $this->assertEquals(255, squareRoot(65025)); diff --git a/exercises/practice/triangle/TriangleTest.php b/exercises/practice/triangle/TriangleTest.php index 7bfb1f4e2..58e47388e 100644 --- a/exercises/practice/triangle/TriangleTest.php +++ b/exercises/practice/triangle/TriangleTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * Uuid: 8b2c43ac-7257-43f9-b552-7631a91988af. */ - #[TestDox('equilateral triangle -> all sides are equal')] + #[TestDox('Equilateral triangle -> All sides are equal')] public function testEquilateralTrianglesHaveEqualSides(): void { $this->assertTrue( @@ -26,7 +26,7 @@ public function testEquilateralTrianglesHaveEqualSides(): void /** * Uuid: 33eb6f87-0498-4ccf-9573-7f8c3ce92b7b. */ - #[TestDox('equilateral triangle -> any side is unequal')] + #[TestDox('Equilateral triangle -> Any side is unequal')] public function testAnySideIsUnequal(): void { @@ -38,7 +38,7 @@ public function testAnySideIsUnequal(): void /** * Uuid: c6585b7d-a8c0-4ad8-8a34-e21d36f7ad87. */ - #[TestDox('equilateral triangle -> no sides are equal')] + #[TestDox('Equilateral triangle -> No sides are equal')] public function testNoSidesAreEqual(): void { $this->assertFalse( @@ -49,7 +49,7 @@ public function testNoSidesAreEqual(): void /** * Uuid: 16e8ceb0-eadb-46d1-b892-c50327479251. */ - #[TestDox('equilateral triangle -> all zero sides is not a triangle')] + #[TestDox('Equilateral triangle -> All zero sides is not a triangle')] public function testEquilateralAllZeroSidesIsNotATriangle(): void { @@ -61,7 +61,7 @@ public function testEquilateralAllZeroSidesIsNotATriangle(): void /** * Uuid: cbc612dc-d75a-4c1c-87fc-e2d5edd70b71. */ - #[TestDox('isosceles triangle -> last two sides are equal')] + #[TestDox('Isosceles triangle -> Last two sides are equal')] public function testIsoscelesTriangleWhenLastTwoSidesAreEqual(): void { $this->assertTrue( @@ -72,7 +72,7 @@ public function testIsoscelesTriangleWhenLastTwoSidesAreEqual(): void /** * Uuid: e388ce93-f25e-4daf-b977-4b7ede992217. */ - #[TestDox('isosceles triangle -> first two sides are equal')] + #[TestDox('Isosceles triangle -> First two sides are equal')] public function testIsoscelesTriangleWhenFirstTwoSidesAreEqual(): void { $this->assertTrue( @@ -83,7 +83,7 @@ public function testIsoscelesTriangleWhenFirstTwoSidesAreEqual(): void /** * Uuid: d2080b79-4523-4c3f-9d42-2da6e81ab30f. */ - #[TestDox('isosceles triangle -> first and last sides are equal')] + #[TestDox('Isosceles triangle -> First and last sides are equal')] public function testIsoscelesTriangleWhenFirstAndLastSidesAreEqual(): void { $this->assertTrue( @@ -94,7 +94,7 @@ public function testIsoscelesTriangleWhenFirstAndLastSidesAreEqual(): void /** * Uuid: 8d71e185-2bd7-4841-b7e1-71689a5491d8. */ - #[TestDox('isosceles triangle -> equilateral triangles are also isosceles')] + #[TestDox('Isosceles triangle -> Equilateral triangles are also isosceles')] public function testIsoscelesTriangleEquilateralTrianglesAreAlsoIsoceles(): void { $this->assertTrue( @@ -105,7 +105,7 @@ public function testIsoscelesTriangleEquilateralTrianglesAreAlsoIsoceles(): void /** * Uuid: 840ed5f8-366f-43c5-ac69-8f05e6f10bbb. */ - #[TestDox('isosceles triangle -> no sides are equal')] + #[TestDox('Isosceles triangle -> No sides are equal')] public function testIsoscelesTriangleNoSidesAreEqual(): void { $this->assertFalse( @@ -116,7 +116,7 @@ public function testIsoscelesTriangleNoSidesAreEqual(): void /** * Uuid: 2eba0cfb-6c65-4c40-8146-30b608905eae. */ - #[TestDox('isosceles triangle -> first triangle inequality violation')] + #[TestDox('Isosceles triangle -> First triangle inequality violation')] public function testIsoscelesFirstTriangleInequalityViolation(): void { @@ -128,7 +128,7 @@ public function testIsoscelesFirstTriangleInequalityViolation(): void /** * Uuid: 278469cb-ac6b-41f0-81d4-66d9b828f8ac. */ - #[TestDox('isosceles triangle -> second triangle inequality violation')] + #[TestDox('Isosceles triangle -> Second triangle inequality violation')] public function testIsoscelesSecondTriangleInequalityViolation(): void { $this->assertFalse( @@ -139,7 +139,7 @@ public function testIsoscelesSecondTriangleInequalityViolation(): void /** * Uuid: 90efb0c7-72bb-4514-b320-3a3892e278ff. */ - #[TestDox('isosceles triangle -> third triangle inequality violation')] + #[TestDox('Isosceles triangle -> Third triangle inequality violation')] public function testTrianglesThirdTriangleInequalityViolation(): void { $this->assertFalse( @@ -150,7 +150,7 @@ public function testTrianglesThirdTriangleInequalityViolation(): void /** * Uuid: 2510001f-b44d-4d18-9872-2303e7977dc1. */ - #[TestDox('scalene triangle -> all sides are equal')] + #[TestDox('Scalene triangle -> All sides are equal')] public function testScaleneAllSidesAreEqual(): void { @@ -162,7 +162,7 @@ public function testScaleneAllSidesAreEqual(): void /** * Uuid: c6e15a92-90d9-4fb3-90a2-eef64f8d3e1e. */ - #[TestDox('scalene triangle -> first and second sides are equal')] + #[TestDox('Scalene triangle -> First and second sides are equal')] public function testScaleneFirstAndSecondSidesAreEqual(): void { @@ -174,7 +174,7 @@ public function testScaleneFirstAndSecondSidesAreEqual(): void /** * Uuid: 3da23a91-a166-419a-9abf-baf4868fd985. */ - #[TestDox('scalene triangle -> first and third sides are equal')] + #[TestDox('Scalene triangle -> First and third sides are equal')] public function testScaleneFirstAndThirdSidesAreEqual(): void { $this->assertFalse( @@ -185,7 +185,7 @@ public function testScaleneFirstAndThirdSidesAreEqual(): void /** * Uuid: b6a75d98-1fef-4c42-8e9a-9db854ba0a4d. */ - #[TestDox('scalene triangle -> second and third sides are equal')] + #[TestDox('Scalene triangle -> Second and third sides are equal')] public function testScaleneSecondAndThirdSidesAreEqual(): void { $this->assertFalse( @@ -196,7 +196,7 @@ public function testScaleneSecondAndThirdSidesAreEqual(): void /** * Uuid: 70ad5154-0033-48b7-af2c-b8d739cd9fdc. */ - #[TestDox('scalene triangle -> may not violate triangle inequality')] + #[TestDox('Scalene triangle -> May not violate triangle inequality')] public function testScaleneMayNotViolateTriangleInequality(): void { $this->assertFalse( diff --git a/exercises/practice/twelve-days/TwelveDaysTest.php b/exercises/practice/twelve-days/TwelveDaysTest.php index b7b02d08c..19325cd60 100644 --- a/exercises/practice/twelve-days/TwelveDaysTest.php +++ b/exercises/practice/twelve-days/TwelveDaysTest.php @@ -22,7 +22,7 @@ public function setUp(): void /** * uuid c0b5a5e6-c89d-49b1-a6b2-9f523bff33f7 */ - #[TestDox('verse -> first day a partridge in a pear tree')] + #[TestDox('Verse -> First day a partridge in a pear tree')] public function testVerseFirstDayAPartridgeInAPearTree(): void { $expected = "On the first day of Christmas my true love gave to me: a Partridge in a Pear Tree."; @@ -32,7 +32,7 @@ public function testVerseFirstDayAPartridgeInAPearTree(): void /** * uuid 1c64508a-df3d-420a-b8e1-fe408847854a */ - #[TestDox('verse -> second day two turtle doves')] + #[TestDox('Verse -> Second day two turtle doves')] public function testVerseSecondDayTwoTurtleDoves(): void { $expected = @@ -44,7 +44,7 @@ public function testVerseSecondDayTwoTurtleDoves(): void /** * uuid a919e09c-75b2-4e64-bb23-de4a692060a8 */ - #[TestDox('verse -> third day three french hens')] + #[TestDox('Verse -> Third day three french hens')] public function testVerseThirdDayThreeFrenchHens(): void { $expected = @@ -56,7 +56,7 @@ public function testVerseThirdDayThreeFrenchHens(): void /** * uuid 9bed8631-ec60-4894-a3bb-4f0ec9fbe68d */ - #[TestDox('verse -> fourth day four calling birds')] + #[TestDox('Verse -> Fourth day four calling birds')] public function testVerseFourthDayFourCallingBirds(): void { $expected = @@ -68,7 +68,7 @@ public function testVerseFourthDayFourCallingBirds(): void /** * uuid cf1024f0-73b6-4545-be57-e9cea565289a */ - #[TestDox('verse -> fifth day five gold rings')] + #[TestDox('Verse -> Fifth day five gold rings')] public function testVerseFifthDayFiveGoldRings(): void { $expected = @@ -80,7 +80,7 @@ public function testVerseFifthDayFiveGoldRings(): void /** * uuid 50bd3393-868a-4f24-a618-68df3d02ff04 */ - #[TestDox('verse -> sixth day six geese-a-laying')] + #[TestDox('Verse -> Sixth day six geese-a-laying')] public function testVerseSixthDaySixGeeseALaying(): void { $expected = @@ -92,7 +92,7 @@ public function testVerseSixthDaySixGeeseALaying(): void /** * uuid 8f29638c-9bf1-4680-94be-e8b84e4ade83 */ - #[TestDox('verse -> seventh day seven swans-a-swimming')] + #[TestDox('Verse -> Seventh day seven swans-a-swimming')] public function testVerseSeventhDaySevenSwansASwimming(): void { $expected = @@ -105,7 +105,7 @@ public function testVerseSeventhDaySevenSwansASwimming(): void /** * uuid 7038d6e1-e377-47ad-8c37-10670a05bc05 */ - #[TestDox('verse -> eighth day eight maids-a-milking')] + #[TestDox('Verse -> Eighth day eight maids-a-milking')] public function testVerseEightDayEightMaidsAMilking(): void { $expected = @@ -118,7 +118,7 @@ public function testVerseEightDayEightMaidsAMilking(): void /** * uuid 37a800a6-7a56-4352-8d72-0f51eb37cfe8 */ - #[TestDox('verse -> ninth day nine ladies dancing')] + #[TestDox('Verse -> Ninth day nine ladies dancing')] public function testVerseNinthDayNineLadiesDancing(): void { $expected = @@ -131,7 +131,7 @@ public function testVerseNinthDayNineLadiesDancing(): void /** * uuid 10b158aa-49ff-4b2d-afc3-13af9133510d */ - #[TestDox('verse -> tenth day ten lords-a-leaping')] + #[TestDox('Verse -> Tenth day ten lords-a-leaping')] public function testVerseTenthDayTenLordsALeaping(): void { $expected = @@ -144,7 +144,7 @@ public function testVerseTenthDayTenLordsALeaping(): void /** * uuid 08d7d453-f2ba-478d-8df0-d39ea6a4f457 */ - #[TestDox('verse -> eleventh day eleven pipers piping')] + #[TestDox('Verse -> Eleventh day eleven pipers piping')] public function testVerseEleventhDayElevenPipersPiping(): void { $expected = @@ -158,7 +158,7 @@ public function testVerseEleventhDayElevenPipersPiping(): void /** * uuid 0620fea7-1704-4e48-b557-c05bf43967f0 */ - #[TestDox('verse -> twelfth day twelve drummers drumming')] + #[TestDox('Verse -> Twelfth day twelve drummers drumming')] public function testVerseTwelfthDayTwelveDrummersDrumming(): void { $expected = @@ -172,7 +172,7 @@ public function testVerseTwelfthDayTwelveDrummersDrumming(): void /** * uuid da8b9013-b1e8-49df-b6ef-ddec0219e398 */ - #[TestDox('lyrics -> recites first three verses of the song')] + #[TestDox('Lyrics -> Recites first three verses of the song')] public function testLyricsRecitesFirstThreeVersesOfSong(): void { $expected = @@ -187,7 +187,7 @@ public function testLyricsRecitesFirstThreeVersesOfSong(): void /** * uuid c095af0d-3137-4653-ad32-bfb899eda24c */ - #[TestDox('lyrics -> recites three verses from the middle of the song')] + #[TestDox('Lyrics -> Recites three verses from the middle of the song')] public function testLyricsRecitesThreeVersesFromMiddleOfSong(): void { $expected = @@ -203,7 +203,7 @@ public function testLyricsRecitesThreeVersesFromMiddleOfSong(): void /** * uuid 20921bc9-cc52-4627-80b3-198cbbfcf9b7 */ - #[TestDox('lyrics -> recites the whole song')] + #[TestDox('Lyrics -> Recites the whole song')] public function testLyricsRecitesTheWholeSong(): void { $expected = diff --git a/exercises/practice/two-fer/TwoFerTest.php b/exercises/practice/two-fer/TwoFerTest.php index bddeeb1ca..3aa440625 100644 --- a/exercises/practice/two-fer/TwoFerTest.php +++ b/exercises/practice/two-fer/TwoFerTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * uuid 1cf3e15a-a3d7-4a87-aeb3-ba1b43bc8dce */ - #[TestDox('no name given')] + #[TestDox('No name given')] public function testNoNameGiven(): void { $this->assertEquals('One for you, one for me.', twoFer()); @@ -24,7 +24,7 @@ public function testNoNameGiven(): void /** * uuid b4c6dbb8-b4fb-42c2-bafd-10785abe7709 */ - #[TestDox('a name given')] + #[TestDox('A name given')] public function testANameGiven(): void { $this->assertEquals('One for Alice, one for me.', twoFer('Alice')); @@ -33,7 +33,7 @@ public function testANameGiven(): void /** * uuid 3549048d-1a6e-4653-9a79-b0bda163e8d5 */ - #[TestDox('another name given')] + #[TestDox('Another name given')] public function testAnotherNameGiven(): void { $this->assertEquals('One for Bob, one for me.', twoFer('Bob')); diff --git a/exercises/practice/word-count/WordCountTest.php b/exercises/practice/word-count/WordCountTest.php index 4738b96fa..87dd54eaa 100644 --- a/exercises/practice/word-count/WordCountTest.php +++ b/exercises/practice/word-count/WordCountTest.php @@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void /** * UUID 61559d5f-2cad-48fb-af53-d3973a9ee9ef */ - #[TestDox('count one word')] + #[TestDox('Count one word')] public function testCountOneWord(): void { $this->assertEquals( @@ -27,7 +27,7 @@ public function testCountOneWord(): void /** * UUID 5abd53a3-1aed-43a4-a15a-29f88c09cbbd */ - #[TestDox('count one of each word')] + #[TestDox('Count one of each word')] public function testCountOneOfEachWord(): void { $this->assertEquals( @@ -43,7 +43,7 @@ public function testCountOneOfEachWord(): void /** * UUID 2a3091e5-952e-4099-9fac-8f85d9655c0e */ - #[TestDox('multiple occurrences of a word')] + #[TestDox('Multiple occurrences of a word')] public function testMultipleOccurrencesOfAWord(): void { $this->assertEquals( @@ -61,7 +61,7 @@ public function testMultipleOccurrencesOfAWord(): void /** * UUID e81877ae-d4da-4af4-931c-d923cd621ca6 */ - #[TestDox('handles cramped lists')] + #[TestDox('Handles cramped lists')] public function testHandlesCrampedLists(): void { $this->assertEquals( @@ -77,7 +77,7 @@ public function testHandlesCrampedLists(): void /** * UUID 7349f682-9707-47c0-a9af-be56e1e7ff30 */ - #[TestDox('handles expanded lists')] + #[TestDox('Handles expanded lists')] public function testHandlesExpandedLists(): void { $this->assertEquals( @@ -93,7 +93,7 @@ public function testHandlesExpandedLists(): void /** * UUID a514a0f2-8589-4279-8892-887f76a14c82 */ - #[TestDox('ignore punctuation')] + #[TestDox('Ignore punctuation')] public function testIgnorePunctuation(): void { $this->assertEquals( @@ -111,7 +111,7 @@ public function testIgnorePunctuation(): void /** * UUID d2e5cee6-d2ec-497b-bdc9-3ebe092ce55e */ - #[TestDox('include numbers')] + #[TestDox('Include numbers')] public function testIncludeNumbers(): void { $this->assertEquals( @@ -127,7 +127,7 @@ public function testIncludeNumbers(): void /** * UUID dac6bc6a-21ae-4954-945d-d7f716392dbf */ - #[TestDox('normalize case')] + #[TestDox('Normalize case')] public function testNormalizeCase(): void { $this->assertEquals( @@ -139,7 +139,7 @@ public function testNormalizeCase(): void /** * UUID 4ff6c7d7-fcfc-43ef-b8e7-34ff1837a2d3 */ - #[TestDox('with apostrophes')] + #[TestDox('With apostrophes')] public function testWithApostrophes(): void { $this->assertEquals( @@ -160,7 +160,7 @@ public function testWithApostrophes(): void /** * UUID be72af2b-8afe-4337-b151-b297202e4a7b */ - #[TestDox('with quotations')] + #[TestDox('With quotations')] public function testWithQuotations(): void { $this->assertEquals( @@ -179,7 +179,7 @@ public function testWithQuotations(): void /** * UUID 8d6815fe-8a51-4a65-96f9-2fb3f6dc6ed6 */ - #[TestDox('substrings from the beginning')] + #[TestDox('Substrings from the beginning')] public function testSubstringsFromTheBeginning(): void { $this->assertEquals( @@ -200,7 +200,7 @@ public function testSubstringsFromTheBeginning(): void /** * UUID c5f4ef26-f3f7-4725-b314-855c04fb4c13 */ - #[TestDox('multiple spaces not detected as a word')] + #[TestDox('Multiple spaces not detected as a word')] public function testMultipleSpacesNotDetectedAsAWord(): void { $this->assertEquals( @@ -212,7 +212,7 @@ public function testMultipleSpacesNotDetectedAsAWord(): void /** * UUID 50176e8a-fe8e-4f4c-b6b6-aa9cf8f20360 */ - #[TestDox('alternating word separators are not detected as a word')] + #[TestDox('Alternating word separators are not detected as a word')] public function testAlternatingWordSeparatorsNotDetectedAsAWord(): void { $this->assertEquals( @@ -228,7 +228,7 @@ public function testAlternatingWordSeparatorsNotDetectedAsAWord(): void /** * UUID 6d00f1db-901c-4bec-9829-d20eb3044557 */ - #[TestDox('quotation for word with apostrophe')] + #[TestDox('Quotation for word with apostrophe')] public function testQuotationForWordWithApostrophe(): void { $this->assertEquals( diff --git a/exercises/practice/wordy/WordyTest.php b/exercises/practice/wordy/WordyTest.php index 68f2ea8c6..163f5e0a1 100644 --- a/exercises/practice/wordy/WordyTest.php +++ b/exercises/practice/wordy/WordyTest.php @@ -13,140 +13,140 @@ public static function setUpBeforeClass(): void } /** uuid: 88bf4b28-0de3-4883-93c7-db1b14aa806e */ - #[TestDox('just a number')] + #[TestDox('Just a number')] public function testJustANumber(): void { $this->assertEquals(5, calculate('What is 5?')); } /** uuid: 18983214-1dfc-4ebd-ac77-c110dde699ce */ - #[TestDox('just a zero')] + #[TestDox('Just a zero')] public function testJustAZero(): void { $this->assertEquals(0, calculate('What is 0?')); } /** uuid: 607c08ee-2241-4288-916d-dae5455c87e6 */ - #[TestDox('just a negative number')] + #[TestDox('Just a negative number')] public function testJustANegativeNumber(): void { $this->assertEquals(-123, calculate('What is -123?')); } /** uuid: bb8c655c-cf42-4dfc-90e0-152fcfd8d4e0 */ - #[TestDox('addition')] + #[TestDox('Addition')] public function testAdd1(): void { $this->assertEquals(2, calculate('What is 1 plus 1?')); } /** uuid: bb9f2082-171c-46ad-ad4e-c3f72087c1b5 */ - #[TestDox('addition with a left hand zero')] + #[TestDox('Addition with a left hand zero')] public function testAdditionWithALeftHandZero(): void { $this->assertEquals(2, calculate('What is 0 plus 2?')); } /** uuid: 6fa05f17-405a-4742-80ae-5d1a8edb0d5d */ - #[TestDox('addition with a right hand zero')] + #[TestDox('Addition with a right hand zero')] public function testAdditionWithARightHandZero(): void { $this->assertEquals(3, calculate('What is 3 plus 0?')); } /** uuid: 79e49e06-c5ae-40aa-a352-7a3a01f70015 */ - #[TestDox('more addition')] + #[TestDox('More addition')] public function testAdd2(): void { $this->assertEquals(55, calculate('What is 53 plus 2?')); } /** uuid: b345dbe0-f733-44e1-863c-5ae3568f3803 */ - #[TestDox('addition with negative numbers')] + #[TestDox('Addition with negative numbers')] public function testAddNegativeNumbers(): void { $this->assertEquals(-11, calculate('What is -1 plus -10?')); } /** uuid: cd070f39-c4cc-45c4-97fb-1be5e5846f87 */ - #[TestDox('large addition')] + #[TestDox('Large addition')] public function testAddMoreDigits(): void { $this->assertEquals(45801, calculate('What is 123 plus 45678?')); } /** uuid: 0d86474a-cd93-4649-a4fa-f6109a011191 */ - #[TestDox('subtraction')] + #[TestDox('Subtraction')] public function testSubtract(): void { $this->assertEquals(16, calculate('What is 4 minus -12?')); } /** uuid: 30bc8395-5500-4712-a0cf-1d788a529be5 */ - #[TestDox('multiplication')] + #[TestDox('Multiplication')] public function testMultiply(): void { $this->assertEquals(-75, calculate('What is -3 multiplied by 25?')); } /** uuid: 34c36b08-8605-4217-bb57-9a01472c427f */ - #[TestDox('division')] + #[TestDox('Division')] public function testDivide(): void { $this->assertEquals(-11, calculate('What is 33 divided by -3?')); } /** uuid: da6d2ce4-fb94-4d26-8f5f-b078adad0596 */ - #[TestDox('multiple additions')] + #[TestDox('Multiple additions')] public function testAddTwice(): void { $this->assertEquals(3, calculate('What is 1 plus 1 plus 1?')); } /** uuid: 7fd74c50-9911-4597-be09-8de7f2fea2bb */ - #[TestDox('addition and subtraction')] + #[TestDox('Addition and subtraction')] public function testAddThenSubtract(): void { $this->assertEquals(8, calculate('What is 1 plus 5 minus -2?')); } /** uuid: b120ffd5-bad6-4e22-81c8-5512e8faf905 */ - #[TestDox('multiple subtraction')] + #[TestDox('Multiple subtraction')] public function testSubtractTwice(): void { $this->assertEquals(3, calculate('What is 20 minus 4 minus 13?')); } /** uuid: 4f4a5749-ef0c-4f60-841f-abcfaf05d2ae */ - #[TestDox('subtraction then addition')] + #[TestDox('Subtraction then addition')] public function testSubtractThenAdd(): void { $this->assertEquals(14, calculate('What is 17 minus 6 plus 3?')); } /** uuid: 312d908c-f68f-42c9-aa75-961623cc033f */ - #[TestDox('multiple multiplication')] + #[TestDox('Multiple multiplication')] public function testMultiplyTwice(): void { $this->assertEquals(-12, calculate('What is 2 multiplied by -2 multiplied by 3?')); } /** uuid: 38e33587-8940-4cc1-bc28-bfd7e3966276 */ - #[TestDox('addition and multiplication')] + #[TestDox('Addition and multiplication')] public function testAddThenMultiply(): void { $this->assertEquals(-8, calculate('What is -3 plus 7 multiplied by -2?')); } /** uuid: 3c854f97-9311-46e8-b574-92b60d17d394 */ - #[TestDox('multiple division')] + #[TestDox('Multiple division')] public function testDivideTwice(): void { $this->assertEquals(2, calculate('What is -12 divided by 2 divided by -3?')); } /** uuid: 3ad3e433-8af7-41ec-aa9b-97b42ab49357 */ - #[TestDox('unknown operation')] + #[TestDox('Unknown operation')] public function testTooAdvanced(): void { $this->expectException('InvalidArgumentException'); @@ -164,7 +164,7 @@ public function testIrrelevant(): void } /** uuid: 42d78b5f-dbd7-4cdb-8b30-00f794bb24cf */ - #[TestDox('reject problem missing an operand')] + #[TestDox('Reject problem missing an operand')] public function testRejectProblemMissingAnOperand(): void { $this->expectException('InvalidArgumentException'); @@ -173,7 +173,7 @@ public function testRejectProblemMissingAnOperand(): void } /** uuid: c2c3cbfc-1a72-42f2-b597-246e617e66f5 */ - #[TestDox('reject problem with no operands or operators')] + #[TestDox('Reject problem with no operands or operators')] public function testRejectProblemWithNoOperandsOrOperators(): void { $this->expectException('InvalidArgumentException'); @@ -182,7 +182,7 @@ public function testRejectProblemWithNoOperandsOrOperators(): void } /** uuid: 4b3df66d-6ed5-4c95-a0a1-d38891fbdab6 */ - #[TestDox('reject two operations in a row')] + #[TestDox('Reject two operations in a row')] public function testRejectTwoOperationsInARow(): void { $this->expectException('InvalidArgumentException'); @@ -191,7 +191,7 @@ public function testRejectTwoOperationsInARow(): void } /** uuid: 6abd7a50-75b4-4665-aa33-2030fd08bab1 */ - #[TestDox('reject two numbers in a row')] + #[TestDox('Reject two numbers in a row')] public function testRejectTwoNumbersInARow(): void { $this->expectException('InvalidArgumentException'); @@ -200,7 +200,7 @@ public function testRejectTwoNumbersInARow(): void } /** uuid: 10a56c22-e0aa-405f-b1d2-c642d9c4c9de */ - #[TestDox('reject postfix notation')] + #[TestDox('Reject postfix notation')] public function testRejectPostfixNotation(): void { $this->expectException('InvalidArgumentException'); @@ -209,7 +209,7 @@ public function testRejectPostfixNotation(): void } /** uuid: 0035bc63-ac43-4bb5-ad6d-e8651b7d954e */ - #[TestDox('reject prefix notation')] + #[TestDox('Reject prefix notation')] public function testRejectPrefixNotation(): void { $this->expectException('InvalidArgumentException');