コード例 #1
0
ファイル: GridTest.php プロジェクト: restgames/battleship-php
 /**
  * @test
  */
 public function givenAnEmptyGridWhenPlacingAShipThenANewGridShouldBeReturnedAkaGridsAreImmutable()
 {
     $this->assertNotSame($this->grid, $this->grid->placeShip(new Submarine(), new Hole('A', 1), Position::fromHorizontal()));
 }