示例#1
0
 public function testReturnsCorrectName()
 {
     $this->assertEquals('B4', Cell::factoryFromCoordinates(1, 3)->getName());
 }
示例#2
0
 private function _reducePossibilitiesForValuesAppearingInHint()
 {
     $rows = $this->_grid->getCells();
     foreach ($rows as $row => $cells) {
         foreach ($cells as $col => $cell) {
             $cellName = Cell::factoryFromCoordinates($col, $row)->getName();
             $value = $this->_grid->getValue($cellName);
             if (!$value) {
                 continue;
             }
             $this->_assignValue($cellName, $value);
         }
     }
 }