예제 #1
0
 public function testFailedReceiveShot()
 {
     $point = new Coordinate(1, 1);
     $x = 2;
     $y = 1;
     $result = $point->receiveShot($x, $y);
     $coordinateHit = $point->isHit();
     $this->assertFalse($result);
     $this->assertFalse($coordinateHit);
 }