Beispiel #1
0
 public function testNumberCell()
 {
     $cell = $this->sheet->cell(1, 1);
     $this->assertEquals(XL_CELL_NUMBER, $cell->ctype);
     $this->assertEquals(100, $cell->value);
     $this->assertTrue($cell->xf_index > 0);
 }
Beispiel #2
0
 public function testCell()
 {
     $empty = new Cell(XL_CELL_EMPTY, '');
     $this->assertNotEquals($empty->ctype, $this->sheet->cell(0, 0)->ctype);
     $this->assertNotEquals($empty->value, $this->sheet->cell(0, 0)->value);
     $this->assertEquals($empty->ctype, $this->sheet->cell(NROWS - 1, NCOLS - 1)->ctype);
     $this->assertEquals($empty->value, $this->sheet->cell(NROWS - 1, NCOLS - 1)->value);
 }