Exemplo n.º 1
0
 /**
  * @param array $sudoku
  */
 private function initRows(array $sudoku)
 {
     for ($i = 0; $i < 9; $i++) {
         $extractedRow = $this->arrayHelper->extract($sudoku, $i, 0, 1, 9);
         $this->rows[] = $this->rowFactory->build($extractedRow);
     }
 }
Exemplo n.º 2
0
 /**
  * @expectedException RuntimeException
  */
 public function testBuildWithWrongRowLength()
 {
     $row = array(array(1, 2, 3));
     $this->factory->build($row);
 }