/** * @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); } }
/** * @expectedException RuntimeException */ public function testBuildWithWrongRowLength() { $row = array(array(1, 2, 3)); $this->factory->build($row); }