Пример #1
0
 /**
  * @param array $sudoku
  */
 private function initColumns(array $sudoku)
 {
     for ($i = 0; $i < 9; $i++) {
         $extractedColumn = $this->arrayHelper->extract($sudoku, 0, $i, 9, 1);
         $this->columns[] = $this->columnFactory->build($extractedColumn);
     }
 }
 /**
  * @expectedException RuntimeException
  */
 public function testBuildWithWrongColumnLength()
 {
     $column = array(array(1), array(2), array(3));
     $this->factory->build($column);
 }