Skip to content

Commit 1e54d4e

Browse files
committed
Capitalize first word in PokerTest.php
1 parent cf7296a commit 1e54d4e

1 file changed

Lines changed: 37 additions & 37 deletions

File tree

exercises/practice/poker/PokerTest.php

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static function setUpBeforeClass(): void
1515
/**
1616
* uuid: 161f485e-39c2-4012-84cf-bec0c755b66c
1717
*/
18-
#[TestDox('single hand always wins')]
18+
#[TestDox('Single hand always wins')]
1919
public function testSingleHandAlwaysWins(): void
2020
{
2121
$hands = ['4S,5S,7H,8D,JC'];
@@ -27,7 +27,7 @@ public function testSingleHandAlwaysWins(): void
2727
/**
2828
* uuid: 370ac23a-a00f-48a9-9965-6f3fb595cf45
2929
*/
30-
#[TestDox('highest card out of all hands wins')]
30+
#[TestDox('Highest card out of all hands wins')]
3131
public function testHighestCardOutOfAllHandsWins(): void
3232
{
3333
$hands = ['4D,5S,6S,8D,3C', '2S,4C,7S,9H,10H', '3S,4S,5D,6H,JH'];
@@ -39,7 +39,7 @@ public function testHighestCardOutOfAllHandsWins(): void
3939
/**
4040
* uuid: d94ad5a7-17df-484b-9932-c64fc26cff52
4141
*/
42-
#[TestDox('a tie has multiple winners')]
42+
#[TestDox('A tie has multiple winners')]
4343
public function testATieHasMultipleWinners(): void
4444
{
4545
$hands = ['4D,5S,6S,8D,3C', '2S,4C,7S,9H,10H', '3S,4S,5D,6H,JH', '3H,4H,5C,6C,JD'];
@@ -51,7 +51,7 @@ public function testATieHasMultipleWinners(): void
5151
/**
5252
* uuid: 61ed83a9-cfaa-40a5-942a-51f52f0a8725
5353
*/
54-
#[TestDox('multiple hands with the same high cards, tie compares next highest ranked, down to last card')]
54+
#[TestDox('Multiple hands with the same high cards, tie compares next highest ranked, down to last card')]
5555
public function testMultipleHandsWithTheSameHighCardsTieComparesNextHighestRankedDownToLastCard(): void
5656
{
5757
$hands = ['3S,5H,6S,8D,7H', '2S,5D,6D,8C,7S'];
@@ -63,7 +63,7 @@ public function testMultipleHandsWithTheSameHighCardsTieComparesNextHighestRanke
6363
/**
6464
* uuid: da01becd-f5b0-4342-b7f3-1318191d0580
6565
*/
66-
#[TestDox('winning high card hand also has the lowest card')]
66+
#[TestDox('Winning high card hand also has the lowest card')]
6767
public function testWinningHighCardHandAlsoHasTheLowestCard(): void
6868
{
6969
$hands = ['2S,5H,6S,8D,7H', '3S,4D,6D,8C,7S'];
@@ -75,7 +75,7 @@ public function testWinningHighCardHandAlsoHasTheLowestCard(): void
7575
/**
7676
* uuid: f7175a89-34ff-44de-b3d7-f6fd97d1fca4
7777
*/
78-
#[TestDox('one pair beats high card')]
78+
#[TestDox('One pair beats high card')]
7979
public function testOnePairBeatsHighCard(): void
8080
{
8181
$hands = ['4S,5H,6C,8D,KH', '2S,4H,6S,4D,JH'];
@@ -87,7 +87,7 @@ public function testOnePairBeatsHighCard(): void
8787
/**
8888
* uuid: e114fd41-a301-4111-a9e7-5a7f72a76561
8989
*/
90-
#[TestDox('highest pair wins')]
90+
#[TestDox('Highest pair wins')]
9191
public function testHighestPairWins(): void
9292
{
9393
$hands = ['4S,2H,6S,2D,JH', '2S,4H,6C,4D,JD'];
@@ -99,7 +99,7 @@ public function testHighestPairWins(): void
9999
/**
100100
* uuid: b3acd3a7-f9fa-4647-85ab-e0a9e07d1365
101101
*/
102-
#[TestDox('both hands have the same pair, high card wins')]
102+
#[TestDox('Both hands have the same pair, high card wins')]
103103
public function testBothHandsHaveTheSamePairHighCardWins(): void
104104
{
105105
$hands = ['4H,4S,AH,JC,3D', '4C,4D,AS,5D,6C'];
@@ -111,7 +111,7 @@ public function testBothHandsHaveTheSamePairHighCardWins(): void
111111
/**
112112
* uuid: 935bb4dc-a622-4400-97fa-86e7d06b1f76
113113
*/
114-
#[TestDox('two pairs beats one pair')]
114+
#[TestDox('Two pairs beats one pair')]
115115
public function testTwoPairsBeatsOnePair(): void
116116
{
117117
$hands = ['2S,8H,6S,8D,JH', '4S,5H,4C,8C,5C'];
@@ -123,7 +123,7 @@ public function testTwoPairsBeatsOnePair(): void
123123
/**
124124
* uuid: c8aeafe1-6e3d-4711-a6de-5161deca91fd
125125
*/
126-
#[TestDox('both hands have two pairs, highest ranked pair wins')]
126+
#[TestDox('Both hands have two pairs, highest ranked pair wins')]
127127
public function testBothHandsHaveTwoPairsHighestRankedPairWins(): void
128128
{
129129
$hands = ['2S,8H,2D,8D,3H', '4S,5H,4C,8S,5D'];
@@ -135,7 +135,7 @@ public function testBothHandsHaveTwoPairsHighestRankedPairWins(): void
135135
/**
136136
* uuid: 88abe1ba-7ad7-40f3-847e-0a26f8e46a60
137137
*/
138-
#[TestDox('both hands have two pairs, with the same highest ranked pair, tie goes to low pair')]
138+
#[TestDox('Both hands have two pairs, with the same highest ranked pair, tie goes to low pair')]
139139
public function testBothHandsHaveTwoPairsWithTheSameHighestRankedPairTieGoesToLowPair(): void
140140
{
141141
$hands = ['2S,QS,2C,QD,JH', 'JD,QH,JS,8D,QC'];
@@ -147,7 +147,7 @@ public function testBothHandsHaveTwoPairsWithTheSameHighestRankedPairTieGoesToLo
147147
/**
148148
* uuid: 15a7a315-0577-47a3-9981-d6cf8e6f387b
149149
*/
150-
#[TestDox('both hands have two identically ranked pairs, tie goes to remaining card (kicker)')]
150+
#[TestDox('Both hands have two identically ranked pairs, tie goes to remaining card (kicker)')]
151151
public function testBothHandsHaveTwoIdenticallyRankedPairsTieGoesToRemainingCard(): void
152152
{
153153
$hands = ['JD,QH,JS,8D,QC', 'JS,QS,JC,2D,QD'];
@@ -159,7 +159,7 @@ public function testBothHandsHaveTwoIdenticallyRankedPairsTieGoesToRemainingCard
159159
/**
160160
* uuid: f761e21b-2560-4774-a02a-b3e9366a51ce
161161
*/
162-
#[TestDox('both hands have two pairs that add to the same value, win goes to highest pair')]
162+
#[TestDox('Both hands have two pairs that add to the same value, win goes to highest pair')]
163163
public function testBotHandsHaveTwoPairsThatAddToTheSameValueWinGoesToHighestPair()
164164
{
165165
$hands = ['6S,6H,3S,3H,AS', '7H,7S,2H,2S,AC'];
@@ -171,7 +171,7 @@ public function testBotHandsHaveTwoPairsThatAddToTheSameValueWinGoesToHighestPai
171171
/**
172172
* uuid: fc6277ac-94ac-4078-8d39-9d441bc7a79e
173173
*/
174-
#[TestDox('two pairs first ranked by largest pair')]
174+
#[TestDox('Two pairs first ranked by largest pair')]
175175
public function testTwoPairsFirstRankedByLargestPair()
176176
{
177177
$hands = ["5C,2S,5S,4H,4C", "6S,2S,6H,7C,2C"];
@@ -183,7 +183,7 @@ public function testTwoPairsFirstRankedByLargestPair()
183183
/**
184184
* uuid: 21e9f1e6-2d72-49a1-a930-228e5e0195dc
185185
*/
186-
#[TestDox('three of a kind beats two pair')]
186+
#[TestDox('Three of a kind beats two pair')]
187187
public function testThreeOfAKindBeatsTwoPair(): void
188188
{
189189
$hands = ['2S,8H,2H,8D,JH', '4S,5H,4C,8S,4H'];
@@ -195,7 +195,7 @@ public function testThreeOfAKindBeatsTwoPair(): void
195195
/**
196196
* uuid: c2fffd1f-c287-480f-bf2d-9628e63bbcc3
197197
*/
198-
#[TestDox('both hands have three of a kind, tie goes to highest ranked triplet')]
198+
#[TestDox('Both hands have three of a kind, tie goes to highest ranked triplet')]
199199
public function testBothHandsHaveThreeOfAKindTieGoesToHighestRankedTriplet(): void
200200
{
201201
$hands = ['2S,2H,2C,8D,JH', '4S,AH,AS,8C,AD'];
@@ -209,7 +209,7 @@ public function testBothHandsHaveThreeOfAKindTieGoesToHighestRankedTriplet(): vo
209209
*
210210
* uuid: 26a4a7d4-34a2-4f18-90b4-4a8dd35d2bb1
211211
*/
212-
#[TestDox('with multiple decks, two players can have same three of a kind, ties go to highest remaining cards')]
212+
#[TestDox('With multiple decks, two players can have same three of a kind, ties go to highest remaining cards')]
213213
public function testWithMultipleDecksTwoPlayersCanHaveSameThreeOfAKindTiesGoToHighestRemainingCards(): void
214214
{
215215
$hands = ['5S,AH,AS,7C,AD', '4S,AH,AS,8C,AD'];
@@ -221,7 +221,7 @@ public function testWithMultipleDecksTwoPlayersCanHaveSameThreeOfAKindTiesGoToHi
221221
/**
222222
* uuid: a858c5d9-2f28-48e7-9980-b7fa04060a60
223223
*/
224-
#[TestDox('a straight beats three of a kind')]
224+
#[TestDox('A straight beats three of a kind')]
225225
public function testStraightBeatsThreeOfAKind(): void
226226
{
227227
$hands = ['4S,5H,4C,8D,4H', '3S,4D,2S,6D,5C'];
@@ -233,7 +233,7 @@ public function testStraightBeatsThreeOfAKind(): void
233233
/**
234234
* uuid: 73c9c756-e63e-4b01-a88d-0d4491a7a0e3
235235
*/
236-
#[TestDox('aces can end a straight (10 J Q K A)')]
236+
#[TestDox('Aces can end a straight (10 J Q K A)')]
237237
public function testAcesCanEndAStraight(): void
238238
{
239239
$hands = ['4S,5H,4C,8D,4H', '10D,JH,QS,KD,AC'];
@@ -245,7 +245,7 @@ public function testAcesCanEndAStraight(): void
245245
/**
246246
* uuid: 76856b0d-35cd-49ce-a492-fe5db53abc02
247247
*/
248-
#[TestDox('aces can start a straight (A 2 3 4 5)')]
248+
#[TestDox('Aces can start a straight (A 2 3 4 5)')]
249249
public function testAcesCanStartAStraight(): void
250250
{
251251
$hands = ['4S,5H,4C,8D,4H', '4D,AH,3S,2D,5C'];
@@ -257,7 +257,7 @@ public function testAcesCanStartAStraight(): void
257257
/**
258258
* uuid: e214b7df-dcba-45d3-a2e5-342d8c46c286
259259
*/
260-
#[TestDox('aces cannot be in the middle of a straight (Q K A 2 3)')]
260+
#[TestDox('Aces cannot be in the middle of a straight (Q K A 2 3)')]
261261
public function testAcesCannotBeInTheMiddleOfAStraight(): void
262262
{
263263
$hands = ['2C,3D,7H,5H,2S', 'QS,KH,AC,2D,3S'];
@@ -269,7 +269,7 @@ public function testAcesCannotBeInTheMiddleOfAStraight(): void
269269
/**
270270
* uuid: 6980c612-bbff-4914-b17a-b044e4e69ea1
271271
*/
272-
#[TestDox('both hands with a straight, tie goes to highest ranked card')]
272+
#[TestDox('Both hands with a straight, tie goes to highest ranked card')]
273273
public function testBothHandsWithAStraightTieGoesToHighestRankedCard(): void
274274
{
275275
$hands = ['4S,6C,7S,8D,5H', '5S,7H,8S,9D,6H'];
@@ -281,7 +281,7 @@ public function testBothHandsWithAStraightTieGoesToHighestRankedCard(): void
281281
/**
282282
* uuid: 5135675c-c2fc-4e21-9ba3-af77a32e9ba4
283283
*/
284-
#[TestDox('even though an ace is usually high, a 5-high straight is the lowest-scoring straight')]
284+
#[TestDox('Even though an ace is usually high, a 5-high straight is the lowest-scoring straight')]
285285
public function testEvenThoughAnAceIsUsuallyHighAFiveHighStraightIsTheLowestScoringStraight(): void
286286
{
287287
$hands = ['2H,3C,4D,5D,6H', '4S,AH,3S,2D,5H'];
@@ -293,7 +293,7 @@ public function testEvenThoughAnAceIsUsuallyHighAFiveHighStraightIsTheLowestScor
293293
/**
294294
* uuid: c601b5e6-e1df-4ade-b444-b60ce13b2571
295295
*/
296-
#[TestDox('flush beats a straight')]
296+
#[TestDox('Flush beats a straight')]
297297
public function testFlushBeatsAStraight(): void
298298
{
299299
$hands = ['4C,6H,7D,8D,5H', '2S,4S,5S,6S,7S'];
@@ -307,7 +307,7 @@ public function testFlushBeatsAStraight(): void
307307
*
308308
* uuid: e04137c5-c19a-4dfc-97a1-9dfe9baaa2ff
309309
*/
310-
#[TestDox('both hands have a flush, tie goes to high card, down to the last one if necessary')]
310+
#[TestDox('Both hands have a flush, tie goes to high card, down to the last one if necessary')]
311311
public function testBothHandsHaveAFlushTieGoesToHighCardDownToTheLastOneIfNecessary(): void
312312
{
313313
$hands = ['2H,7H,8H,9H,6H', '3S,5S,6S,7S,8S'];
@@ -319,7 +319,7 @@ public function testBothHandsHaveAFlushTieGoesToHighCardDownToTheLastOneIfNecess
319319
/**
320320
* uuid: 3a19361d-8974-455c-82e5-f7152f5dba7c
321321
*/
322-
#[TestDox('full house beats a flush')]
322+
#[TestDox('Full house beats a flush')]
323323
public function testFullHouseBeatsAFlush(): void
324324
{
325325
$hands = ['3H,6H,7H,8H,5H', '4S,5H,4C,5D,4H'];
@@ -331,7 +331,7 @@ public function testFullHouseBeatsAFlush(): void
331331
/**
332332
* uuid: eb73d0e6-b66c-4f0f-b8ba-bf96bc0a67f0
333333
*/
334-
#[TestDox('both hands have a full house, tie goes to highest-ranked triplet')]
334+
#[TestDox('Both hands have a full house, tie goes to highest-ranked triplet')]
335335
public function testBothHandsHaveAFullHouseTieGoesToHighestRankedTriplet(): void
336336
{
337337
$hands = ['4H,4S,4D,9S,9D', '5H,5S,5D,8S,8D'];
@@ -343,7 +343,7 @@ public function testBothHandsHaveAFullHouseTieGoesToHighestRankedTriplet(): void
343343
/**
344344
* uuid: e34b51168-1e43-4c0d-9b32-e356159b4d5d
345345
*/
346-
#[TestDox('with multiple decks, both hands have a full house with the same triplet, tie goes to the pair')]
346+
#[TestDox('With multiple decks, both hands have a full house with the same triplet, tie goes to the pair')]
347347
public function testWithMultipleDecksBothHandsHaveAFullHouseWithTheSameTripletTieGoesToThePair(): void
348348
{
349349
$hands = ['5H,5S,5D,9S,9D', '5H,5S,5D,8S,8D'];
@@ -355,7 +355,7 @@ public function testWithMultipleDecksBothHandsHaveAFullHouseWithTheSameTripletTi
355355
/**
356356
* uuid: d61e9e99-883b-4f99-b021-18f0ae50c5f4
357357
*/
358-
#[TestDox('four of a kind beats a full house')]
358+
#[TestDox('Four of a kind beats a full house')]
359359
public function testFourOfAKindBeatsAFullHouse(): void
360360
{
361361
$hands = ['4S,5H,4D,5D,4H', '3S,3H,2S,3D,3C'];
@@ -367,7 +367,7 @@ public function testFourOfAKindBeatsAFullHouse(): void
367367
/**
368368
* uuid: 2e1c8c63-e0cb-4214-a01b-91954490d2fe
369369
*/
370-
#[TestDox('both hands have four of a kind, tie goes to high quad')]
370+
#[TestDox('Both hands have four of a kind, tie goes to high quad')]
371371
public function testBothHandsHaveFourOfAKindTieGoesToHighQuad(): void
372372
{
373373
$hands = ['2S,2H,2C,8D,2D', '4S,5H,5S,5D,5C'];
@@ -379,7 +379,7 @@ public function testBothHandsHaveFourOfAKindTieGoesToHighQuad(): void
379379
/**
380380
* uuid: 892ca75d-5474-495d-9f64-a6ce2dcdb7e1
381381
*/
382-
#[TestDox('with multiple decks, both hands with identical four of a kind, tie determined by kicker')]
382+
#[TestDox('With multiple decks, both hands with identical four of a kind, tie determined by kicker')]
383383
public function testWithMultipleDecksBothHandsWithIdenticalFourOfAKindTieDeterminedByKicker(): void
384384
{
385385
$hands = ['3S,3H,2S,3D,3C', '3S,3H,4S,3D,3C'];
@@ -391,7 +391,7 @@ public function testWithMultipleDecksBothHandsWithIdenticalFourOfAKindTieDetermi
391391
/**
392392
* uuid: 923bd910-dc7b-4f7d-a330-8b42ec10a3ac
393393
*/
394-
#[TestDox('straight flush beats four of a kind')]
394+
#[TestDox('Straight flush beats four of a kind')]
395395
public function testStraightFlushBeatsFourOfAKind(): void
396396
{
397397
$hands = ['4S,5H,5S,5D,5C', '7S,8S,9S,6S,10S'];
@@ -403,7 +403,7 @@ public function testStraightFlushBeatsFourOfAKind(): void
403403
/**
404404
* uuid: d9629e22-c943-460b-a951-2134d1b43346
405405
*/
406-
#[TestDox('aces can end a straight flush (10 J Q K A)')]
406+
#[TestDox('Aces can end a straight flush (10 J Q K A)')]
407407
public function testAcesCanEndAStraightFlush(): void
408408
{
409409
$hands = ['KC,AH,AS,AD,AC', '10C,JC,QC,KC,AC'];
@@ -415,7 +415,7 @@ public function testAcesCanEndAStraightFlush(): void
415415
/**
416416
* uuid: 05d5ede9-64a5-4678-b8ae-cf4c595dc824
417417
*/
418-
#[TestDox('aces can start a straight flush (A 2 3 4 5)')]
418+
#[TestDox('Aces can start a straight flush (A 2 3 4 5)')]
419419
public function testAcesCanStartAStraightFlush(): void
420420
{
421421
$hands = ['KS,AH,AS,AD,AC', '4H,AH,3H,2H,5H'];
@@ -427,7 +427,7 @@ public function testAcesCanStartAStraightFlush(): void
427427
/**
428428
* uuid: ad655466-6d04-49e8-a50c-0043c3ac18ff
429429
*/
430-
#[TestDox('aces cannot be in the middle of a straight flush (Q K A 2 3)')]
430+
#[TestDox('Aces cannot be in the middle of a straight flush (Q K A 2 3)')]
431431
public function testAcesCannotBeInTheMiddleOfAStraightFlush(): void
432432
{
433433
$hands = ['2C,AC,QC,10C,KC', 'QH,KH,AH,2H,3H'];
@@ -439,7 +439,7 @@ public function testAcesCannotBeInTheMiddleOfAStraightFlush(): void
439439
/**
440440
* uuid: d0927f70-5aec-43db-aed8-1cbd1b6ee9ad
441441
*/
442-
#[TestDox('both hands have a straight flush, tie goes to highest-ranked card')]
442+
#[TestDox('Both hands have a straight flush, tie goes to highest-ranked card')]
443443
public function testBothHandsHaveAStraightFlushTieGoesToHighestRankedCard(): void
444444
{
445445
$hands = ['4H,6H,7H,8H,5H', '5S,7S,8S,9S,6S'];
@@ -451,7 +451,7 @@ public function testBothHandsHaveAStraightFlushTieGoesToHighestRankedCard(): voi
451451
/**
452452
* uuid: be620e09-0397-497b-ac37-d1d7a4464cfc
453453
*/
454-
#[TestDox('even though an ace is usually high, a 5-high straight flush is the lowest-scoring straight flush')]
454+
#[TestDox('Even though an ace is usually high, a 5-high straight flush is the lowest-scoring straight flush')]
455455
public function tesEvenThoughAnAceIsUsuallyHighAFivehighStraightFlushIsTheLowestScoringStraightFlush(): void
456456
{
457457
$hands = ['2H,3H,4H,5H,6H', '4D,AD,3D,2D,5D'];

0 commit comments

Comments
 (0)