addSpot($spot); // $this->assertEquals([$spot], $table->getSpots()); // } public function testZeroSpotsCount() { $description = [ [0, 0], [0, 0], ]; $map = new Map($description); $table = new Table($map); $this->assertEquals(0, $table->getSpotsCount()); } public function testTwoSingleSpotsCount() { $description = [ [0, 1, 0], [0, 0, 0], [1, 0, 0], [0, 0, 0], ]; $map = new Map($description); $table = new Table($map); $this->assertEquals(2, $table->getSpotsCount()); } }