Skip to content

Commit

Permalink
Fix test names to match test values (exercism#753)
Browse files Browse the repository at this point in the history
[no important files changed]
  • Loading branch information
mk-mxp authored Jun 15, 2024
1 parent 0f55982 commit 5880d33
Showing 1 changed file with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static function setUpBeforeClass(): void
* @testdox cannot fast attack when the knight is awake
* @task_id 1
*/
public function testCanFastAttackWhenKnightIsAwake()
public function testCannotFastAttackWhenKnightIsAwake()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canFastAttack(is_knight_awake: true);
Expand Down Expand Up @@ -136,8 +136,8 @@ public function testCanSpyWhenEveryoneAwake()
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canSpy(
is_knight_awake: true,
is_archer_awake: false,
is_prisoner_awake: false
is_archer_awake: true,
is_prisoner_awake: true
);
$expected = true;
$this->assertEquals($expected, $actual);
Expand Down Expand Up @@ -174,10 +174,10 @@ public function testCanSignalWhenArcherAsleep()
}

/**
* @testdox can signal the prisoner when prisoner is asleep
* @testdox cannot signal the prisoner when prisoner is asleep
* @task_id 3
*/
public function testCanSignalWhenPrisonerAsleep()
public function testCannotSignalWhenPrisonerAsleep()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canSignal(
Expand All @@ -189,10 +189,10 @@ public function testCanSignalWhenPrisonerAsleep()
}

/**
* @testdox can signal the prisoner when no one is asleep
* @testdox cannot signal the prisoner when no one is asleep
* @task_id 3
*/
public function testCanSignalWhenNoOneAsleep()
public function testCannotSignalWhenNoOneAsleep()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canSignal(
Expand All @@ -204,10 +204,10 @@ public function testCanSignalWhenNoOneAsleep()
}

/**
* @testdox cannot liberate the prisoner when no one is awake
* @testdox cannot liberate the prisoner when no one is awake and no dog present
* @task_id 4
*/
public function testCanLiberateWhenAllAsleep()
public function testCannotLiberateWhenAllAsleepAndNoDogPresent()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand Down Expand Up @@ -275,7 +275,7 @@ public function testCanLiberateWhenPrisonerAwakeWithDog()
* @testdox cannot liberate the prisoner when archer is awake without dog
* @task_id 4
*/
public function testCanLiberateWhenArcherAwakeWithoutDog()
public function testCannotLiberateWhenArcherAwakeWithoutDog()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand All @@ -292,7 +292,7 @@ public function testCanLiberateWhenArcherAwakeWithoutDog()
* @testdox cannot liberate the prisoner when archer is awake with dog
* @task_id 4
*/
public function testCanLiberateWhenArcherAwakeWithDog()
public function testCannotLiberateWhenArcherAwakeWithDog()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand All @@ -309,7 +309,7 @@ public function testCanLiberateWhenArcherAwakeWithDog()
* @testdox cannot liberate the prisoner when knight asleep with dog
* @task_id 4
*/
public function testCanLiberateWhenKnightAsleepWithDog()
public function testCannotLiberateWhenKnightAsleepWithDog()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand All @@ -326,7 +326,7 @@ public function testCanLiberateWhenKnightAsleepWithDog()
* @testdox cannot liberate the prisoner when knight asleep without dog
* @task_id 4
*/
public function testCanLiberateWhenKnightAsleepWithoutDog()
public function testCannotLiberateWhenKnightAsleepWithoutDog()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand All @@ -343,7 +343,7 @@ public function testCanLiberateWhenKnightAsleepWithoutDog()
* @testdox cannot liberate the prisoner when only knight awake without dog
* @task_id 4
*/
public function testCanLiberateWhenKnightAwakeWithoutDog()
public function testCannotLiberateWhenKnightAwakeWithoutDog()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand All @@ -357,7 +357,7 @@ public function testCanLiberateWhenKnightAwakeWithoutDog()
}

/**
* @testdox cannot liberate the prisoner when only knight awake with dog
* @testdox can liberate the prisoner when only knight awake with dog
* @task_id 4
*/
public function testCanLiberateWhenKnightAwakeWithDog()
Expand All @@ -374,10 +374,10 @@ public function testCanLiberateWhenKnightAwakeWithDog()
}

/**
* @testdox can't liberate the prisoner when only archer asleep without dog
* @testdox cannot liberate the prisoner when only archer asleep without dog
* @task_id 4
*/
public function testCanLiberateWhenArcherAsleepWithoutDog()
public function testCannotLiberateWhenArcherAsleepWithoutDog()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand Down Expand Up @@ -408,10 +408,10 @@ public function testCanLiberateWhenArcherAsleepWithDog()
}

/**
* @testdox can't liberate the prisoner when prisoner asleep without dog
* @testdox cannot liberate the prisoner when prisoner asleep without dog
* @task_id 4
*/
public function testCanLiberateWhenPrisonerAsleepWithoutDog()
public function testCannotLiberateWhenPrisonerAsleepWithoutDog()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand All @@ -425,10 +425,10 @@ public function testCanLiberateWhenPrisonerAsleepWithoutDog()
}

/**
* @testdox can't liberate the prisoner when prisoner asleep with dog
* @testdox cannot liberate the prisoner when prisoner asleep with dog
* @task_id 4
*/
public function testCanLiberateWhenPrisonerAsleepWithDog()
public function testCannotLiberateWhenPrisonerAsleepWithDog()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand All @@ -442,10 +442,10 @@ public function testCanLiberateWhenPrisonerAsleepWithDog()
}

/**
* @testdox can't liberate the prisoner when all awake without dog
* @testdox cannot liberate the prisoner when all awake without dog
* @task_id 4
*/
public function testCanLiberateWhenAllAwakeWithoutDog()
public function testCannotLiberateWhenAllAwakeWithoutDog()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand All @@ -459,10 +459,10 @@ public function testCanLiberateWhenAllAwakeWithoutDog()
}

/**
* @testdox can't liberate the prisoner when all awake with dog
* @testdox cannot liberate the prisoner when all awake with dog
* @task_id 4
*/
public function testCanLiberateWhenAllAwakeWithDog()
public function testCannotLiberateWhenAllAwakeWithDog()
{
$infiltration = new AnnalynsInfiltration();
$actual = $infiltration->canLiberate(
Expand Down

0 comments on commit 5880d33

Please sign in to comment.