addPosition($position); $table->addSpot($spot); $this->assertEquals([$spot], $table->getSpots()); } public function testSpotsCount() { $position = new Position(0, 0); $spot = new Spot(); $table = new Table(); $spot->addPosition($position); $table->addSpot($spot); $table->addSpot($spot); $this->assertEquals(2, $table->getSpotsCount()); } }