コード例 #1
0
ファイル: Sudoku.php プロジェクト: sobit/sudoku-checker
 /**
  * @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);
     }
 }
コード例 #2
0
 /**
  * @expectedException RuntimeException
  */
 public function testBuildWithWrongColumnLength()
 {
     $column = array(array(1), array(2), array(3));
     $this->factory->build($column);
 }