1
1
<?php
2
2
3
- class AnnalynsInfiltrationTest extends PHPUnit \Framework \TestCase
3
+ use PHPUnit \Framework \TestCase ;
4
+ use PHPUnit \Framework \Attributes \TestDox ;
5
+
6
+ class AnnalynsInfiltrationTest extends TestCase
4
7
{
5
8
public static function setUpBeforeClass (): void
6
9
{
7
10
require_once 'AnnalynsInfiltration.php ' ;
8
11
}
9
12
10
13
/**
11
- * @testdox cannot fast attack when the knight is awake
12
14
* @task_id 1
13
15
*/
16
+ #[TestDox('cannot fast attack when the knight is awake ' )]
14
17
public function testCannotFastAttackWhenKnightIsAwake ()
15
18
{
16
19
$ infiltration = new AnnalynsInfiltration ();
@@ -20,9 +23,9 @@ public function testCannotFastAttackWhenKnightIsAwake()
20
23
}
21
24
22
25
/**
23
- * @testdox can fast attack when the knight is asleep
24
26
* @task_id 1
25
27
*/
28
+ #[TestDox('can fast attack when the knight is asleep ' )]
26
29
public function testCanFastAttackWhenKnightIsAsleep ()
27
30
{
28
31
$ infiltration = new AnnalynsInfiltration ();
@@ -32,9 +35,9 @@ public function testCanFastAttackWhenKnightIsAsleep()
32
35
}
33
36
34
37
/**
35
- * @testdox cannot spy when everyone is asleep
36
38
* @task_id 2
37
39
*/
40
+ #[TestDox('cannot spy when everyone is asleep ' )]
38
41
public function testCannotSpyWhenEveryoneAsleep ()
39
42
{
40
43
$ infiltration = new AnnalynsInfiltration ();
@@ -48,9 +51,9 @@ public function testCannotSpyWhenEveryoneAsleep()
48
51
}
49
52
50
53
/**
51
- * @testdox can spy when only the prisoner is awake
52
54
* @task_id 2
53
55
*/
56
+ #[TestDox('can spy when only the prisoner is awake ' )]
54
57
public function testCanSpyWhenOnlyPrisonerAwake ()
55
58
{
56
59
$ infiltration = new AnnalynsInfiltration ();
@@ -64,9 +67,9 @@ public function testCanSpyWhenOnlyPrisonerAwake()
64
67
}
65
68
66
69
/**
67
- * @testdox can spy when only the archer is awake
68
70
* @task_id 2
69
71
*/
72
+ #[TestDox('can spy when only the archer is awake ' )]
70
73
public function testCanSpyWhenOnlyArcherAwake ()
71
74
{
72
75
$ infiltration = new AnnalynsInfiltration ();
@@ -80,9 +83,9 @@ public function testCanSpyWhenOnlyArcherAwake()
80
83
}
81
84
82
85
/**
83
- * @testdox can spy when only the knight is awake
84
86
* @task_id 2
85
87
*/
88
+ #[TestDox('can spy when only the knight is awake ' )]
86
89
public function testCanSpyWhenOnlyKnightAwake ()
87
90
{
88
91
$ infiltration = new AnnalynsInfiltration ();
@@ -96,9 +99,9 @@ public function testCanSpyWhenOnlyKnightAwake()
96
99
}
97
100
98
101
/**
99
- * @testdox can spy when only the knight is asleep
100
102
* @task_id 2
101
103
*/
104
+ #[TestDox('can spy when only the knight is asleep ' )]
102
105
public function testCanSpyWhenOnlyKnightAsleep ()
103
106
{
104
107
$ infiltration = new AnnalynsInfiltration ();
@@ -112,9 +115,9 @@ public function testCanSpyWhenOnlyKnightAsleep()
112
115
}
113
116
114
117
/**
115
- * @testdox can spy when only the prisoner is asleep
116
118
* @task_id 2
117
119
*/
120
+ #[TestDox('can spy when only the prisoner is asleep ' )]
118
121
public function testCanSpyWhenOnlyPrisonerAsleep ()
119
122
{
120
123
$ infiltration = new AnnalynsInfiltration ();
@@ -128,9 +131,9 @@ public function testCanSpyWhenOnlyPrisonerAsleep()
128
131
}
129
132
130
133
/**
131
- * @testdox can spy when only the archer is asleep
132
134
* @task_id 2
133
135
*/
136
+ #[TestDox('can spy when only the archer is asleep ' )]
134
137
public function testCanSpyWhenOnlyArcherAsleep ()
135
138
{
136
139
$ infiltration = new AnnalynsInfiltration ();
@@ -144,9 +147,9 @@ public function testCanSpyWhenOnlyArcherAsleep()
144
147
}
145
148
146
149
/**
147
- * @testdox can spy when everyone is awake
148
150
* @task_id 2
149
151
*/
152
+ #[TestDox('can spy when everyone is awake ' )]
150
153
public function testCanSpyWhenEveryoneAwake ()
151
154
{
152
155
$ infiltration = new AnnalynsInfiltration ();
@@ -160,9 +163,9 @@ public function testCanSpyWhenEveryoneAwake()
160
163
}
161
164
162
165
/**
163
- * @testdox cannot signal the prisoner when everyone is asleep
164
166
* @task_id 3
165
167
*/
168
+ #[TestDox('cannot signal the prisoner when everyone is asleep ' )]
166
169
public function testCannotSignalWhenAllAsleep ()
167
170
{
168
171
$ infiltration = new AnnalynsInfiltration ();
@@ -175,9 +178,9 @@ public function testCannotSignalWhenAllAsleep()
175
178
}
176
179
177
180
/**
178
- * @testdox can signal the prisoner when archer is asleep
179
181
* @task_id 3
180
182
*/
183
+ #[TestDox('can signal the prisoner when archer is asleep ' )]
181
184
public function testCanSignalWhenArcherAsleep ()
182
185
{
183
186
$ infiltration = new AnnalynsInfiltration ();
@@ -190,9 +193,9 @@ public function testCanSignalWhenArcherAsleep()
190
193
}
191
194
192
195
/**
193
- * @testdox cannot signal the prisoner when prisoner is asleep
194
196
* @task_id 3
195
197
*/
198
+ #[TestDox('cannot signal the prisoner when prisoner is asleep ' )]
196
199
public function testCannotSignalWhenPrisonerAsleep ()
197
200
{
198
201
$ infiltration = new AnnalynsInfiltration ();
@@ -205,9 +208,9 @@ public function testCannotSignalWhenPrisonerAsleep()
205
208
}
206
209
207
210
/**
208
- * @testdox cannot signal the prisoner when no one is asleep
209
211
* @task_id 3
210
212
*/
213
+ #[TestDox('cannot signal the prisoner when no one is asleep ' )]
211
214
public function testCannotSignalWhenNoOneAsleep ()
212
215
{
213
216
$ infiltration = new AnnalynsInfiltration ();
@@ -220,9 +223,9 @@ public function testCannotSignalWhenNoOneAsleep()
220
223
}
221
224
222
225
/**
223
- * @testdox can liberate the prisoner when no one is awake but dog present
224
226
* @task_id 4
225
227
*/
228
+ #[TestDox('can liberate the prisoner when no one is awake but dog present ' )]
226
229
public function testCanLiberateWhenAllAsleepAndDogPresent ()
227
230
{
228
231
$ infiltration = new AnnalynsInfiltration ();
@@ -237,9 +240,9 @@ public function testCanLiberateWhenAllAsleepAndDogPresent()
237
240
}
238
241
239
242
/**
240
- * @testdox can liberate the prisoner when prisoner is awake with dog
241
243
* @task_id 4
242
244
*/
245
+ #[TestDox('can liberate the prisoner when prisoner is awake with dog ' )]
243
246
public function testCanLiberateWhenPrisonerAwakeWithDog ()
244
247
{
245
248
$ infiltration = new AnnalynsInfiltration ();
@@ -254,9 +257,9 @@ public function testCanLiberateWhenPrisonerAwakeWithDog()
254
257
}
255
258
256
259
/**
257
- * @testdox cannot liberate the prisoner when archer is awake with dog
258
260
* @task_id 4
259
261
*/
262
+ #[TestDox('cannot liberate the prisoner when archer is awake with dog ' )]
260
263
public function testCannotLiberateWhenArcherAwakeWithDog ()
261
264
{
262
265
$ infiltration = new AnnalynsInfiltration ();
@@ -271,9 +274,9 @@ public function testCannotLiberateWhenArcherAwakeWithDog()
271
274
}
272
275
273
276
/**
274
- * @testdox can liberate the prisoner when only knight awake with dog
275
277
* @task_id 4
276
278
*/
279
+ #[TestDox('can liberate the prisoner when only knight awake with dog ' )]
277
280
public function testCanLiberateWhenKnightAwakeWithDog ()
278
281
{
279
282
$ infiltration = new AnnalynsInfiltration ();
@@ -288,9 +291,9 @@ public function testCanLiberateWhenKnightAwakeWithDog()
288
291
}
289
292
290
293
/**
291
- * @testdox cannot liberate the prisoner when prisoner asleep with dog
292
294
* @task_id 4
293
295
*/
296
+ #[TestDox('cannot liberate the prisoner when prisoner asleep with dog ' )]
294
297
public function testCannotLiberateWhenPrisonerAsleepWithDog ()
295
298
{
296
299
$ infiltration = new AnnalynsInfiltration ();
@@ -305,9 +308,9 @@ public function testCannotLiberateWhenPrisonerAsleepWithDog()
305
308
}
306
309
307
310
/**
308
- * @testdox can liberate the prisoner when only archer asleep with dog
309
311
* @task_id 4
310
312
*/
313
+ #[TestDox('can liberate the prisoner when only archer asleep with dog ' )]
311
314
public function testCanLiberateWhenArcherAsleepWithDog ()
312
315
{
313
316
$ infiltration = new AnnalynsInfiltration ();
@@ -322,9 +325,9 @@ public function testCanLiberateWhenArcherAsleepWithDog()
322
325
}
323
326
324
327
/**
325
- * @testdox cannot liberate the prisoner when knight asleep with dog
326
328
* @task_id 4
327
329
*/
330
+ #[TestDox('cannot liberate the prisoner when knight asleep with dog ' )]
328
331
public function testCannotLiberateWhenKnightAsleepWithDog ()
329
332
{
330
333
$ infiltration = new AnnalynsInfiltration ();
@@ -339,9 +342,9 @@ public function testCannotLiberateWhenKnightAsleepWithDog()
339
342
}
340
343
341
344
/**
342
- * @testdox cannot liberate the prisoner when all awake with dog
343
345
* @task_id 4
344
346
*/
347
+ #[TestDox('cannot liberate the prisoner when all awake with dog ' )]
345
348
public function testCannotLiberateWhenAllAwakeWithDog ()
346
349
{
347
350
$ infiltration = new AnnalynsInfiltration ();
@@ -356,9 +359,9 @@ public function testCannotLiberateWhenAllAwakeWithDog()
356
359
}
357
360
358
361
/**
359
- * @testdox cannot liberate the prisoner when no one is awake and no dog present
360
362
* @task_id 4
361
363
*/
364
+ #[TestDox('cannot liberate the prisoner when no one is awake and no dog present ' )]
362
365
public function testCannotLiberateWhenAllAsleepAndNoDogPresent ()
363
366
{
364
367
$ infiltration = new AnnalynsInfiltration ();
@@ -373,9 +376,9 @@ public function testCannotLiberateWhenAllAsleepAndNoDogPresent()
373
376
}
374
377
375
378
/**
376
- * @testdox can liberate the prisoner when prisoner is awake without dog
377
379
* @task_id 4
378
380
*/
381
+ #[TestDox('can liberate the prisoner when prisoner is awake without dog ' )]
379
382
public function testCanLiberateWhenPrisonerAwakeWithoutDog ()
380
383
{
381
384
$ infiltration = new AnnalynsInfiltration ();
@@ -390,9 +393,9 @@ public function testCanLiberateWhenPrisonerAwakeWithoutDog()
390
393
}
391
394
392
395
/**
393
- * @testdox cannot liberate the prisoner when archer is awake without dog
394
396
* @task_id 4
395
397
*/
398
+ #[TestDox('cannot liberate the prisoner when archer is awake without dog ' )]
396
399
public function testCannotLiberateWhenArcherAwakeWithoutDog ()
397
400
{
398
401
$ infiltration = new AnnalynsInfiltration ();
@@ -407,9 +410,9 @@ public function testCannotLiberateWhenArcherAwakeWithoutDog()
407
410
}
408
411
409
412
/**
410
- * @testdox cannot liberate the prisoner when only knight awake without dog
411
413
* @task_id 4
412
414
*/
415
+ #[TestDox('cannot liberate the prisoner when only knight awake without dog ' )]
413
416
public function testCannotLiberateWhenKnightAwakeWithoutDog ()
414
417
{
415
418
$ infiltration = new AnnalynsInfiltration ();
@@ -424,9 +427,9 @@ public function testCannotLiberateWhenKnightAwakeWithoutDog()
424
427
}
425
428
426
429
/**
427
- * @testdox cannot liberate the prisoner when prisoner asleep without dog
428
430
* @task_id 4
429
431
*/
432
+ #[TestDox('cannot liberate the prisoner when prisoner asleep without dog ' )]
430
433
public function testCannotLiberateWhenPrisonerAsleepWithoutDog ()
431
434
{
432
435
$ infiltration = new AnnalynsInfiltration ();
@@ -441,9 +444,9 @@ public function testCannotLiberateWhenPrisonerAsleepWithoutDog()
441
444
}
442
445
443
446
/**
444
- * @testdox cannot liberate the prisoner when only archer asleep without dog
445
447
* @task_id 4
446
448
*/
449
+ #[TestDox('cannot liberate the prisoner when only archer asleep without dog ' )]
447
450
public function testCannotLiberateWhenArcherAsleepWithoutDog ()
448
451
{
449
452
$ infiltration = new AnnalynsInfiltration ();
@@ -458,9 +461,9 @@ public function testCannotLiberateWhenArcherAsleepWithoutDog()
458
461
}
459
462
460
463
/**
461
- * @testdox cannot liberate the prisoner when knight asleep without dog
462
464
* @task_id 4
463
465
*/
466
+ #[TestDox('cannot liberate the prisoner when knight asleep without dog ' )]
464
467
public function testCannotLiberateWhenKnightAsleepWithoutDog ()
465
468
{
466
469
$ infiltration = new AnnalynsInfiltration ();
@@ -475,9 +478,9 @@ public function testCannotLiberateWhenKnightAsleepWithoutDog()
475
478
}
476
479
477
480
/**
478
- * @testdox cannot liberate the prisoner when all awake without dog
479
481
* @task_id 4
480
482
*/
483
+ #[TestDox('cannot liberate the prisoner when all awake without dog ' )]
481
484
public function testCannotLiberateWhenAllAwakeWithoutDog ()
482
485
{
483
486
$ infiltration = new AnnalynsInfiltration ();
0 commit comments