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