/** * @dataProvider dataprovider */ public function testGetNeighbor($x, $y, $m, $n, $r, $msg) { $cell = new CellField($x, $y); $this->assertEquals($r, $cell->getNeighbor($m, $n), $msg); }
public function addCell($x, $y) { $cell = new CellField($x, $y); $cell->setDebug($this->debug); $this->cells[] = $cell; }