コード例 #1
0
 function test_Create_New_Rock()
 {
     //Arrange;
     $new_rock = new Rock();
     $strength = $new_rock->getStrength();
     $accuracy = $new_rock->getAccuracy();
     $life = $new_rock->getLife();
     //Act;
     $result = [$strength, $accuracy, $life];
     //Assert;
     $this->assertEquals([6, 2, 4], $result);
 }